Browse Source

system: Do not set 'TZ'.

Fixes <https://bugs.gnu.org/29212>.
Reported by Diego Nicola Barbato <dnbarbato@posteo.de>.

* gnu/system.scm (operating-system-environment-variables): Remove "TZ".
version-0.14.0
Ludovic Courtès 5 years ago
parent
commit
5475749960
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 3
      gnu/system.scm

3
gnu/system.scm

@ -727,7 +727,8 @@ use 'plain-file' instead~%")
"Return the environment variables of OS for
@var{session-environment-service-type}, to be used in @file{/etc/environment}."
`(("LANG" . ,(operating-system-locale os))
("TZ" . ,(operating-system-timezone os))
;; Note: No need to set 'TZ' since (1) we provide /etc/localtime, and (2)
;; it doesn't work for setuid binaries. See <https://bugs.gnu.org/29212>.
("TZDIR" . ,(file-append tzdata "/share/zoneinfo"))
;; Tell 'modprobe' & co. where to look for modules.
("LINUX_MODULE_DIRECTORY" . "/run/booted-system/kernel/lib/modules")

Loading…
Cancel
Save