summary refs log tree commit diff
path: root/gnu/system.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-11-09 09:58:33 +0100
committerLudovic Courtès <ludo@gnu.org>2017-11-09 09:59:21 +0100
commit5475749960d44163a4c6c4d1d1cb1be9872b861e (patch)
tree9ec4bef89a3826326f5d9e0abc3173ffefba6120 /gnu/system.scm
parentda4a707c880c39f95f596bc1b1da99a20f5b60ef (diff)
downloadguix-5475749960d44163a4c6c4d1d1cb1be9872b861e.tar.gz
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".
Diffstat (limited to 'gnu/system.scm')
-rw-r--r--gnu/system.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/system.scm b/gnu/system.scm
index 5f562b48bb..ce2c05f4e1 100644
--- a/gnu/system.scm
+++ b/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")