guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: system: Do not set 'TZ'.


From: Ludovic Courtès
Subject: 01/01: system: Do not set 'TZ'.
Date: Thu, 9 Nov 2017 04:06:07 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 5475749960d44163a4c6c4d1d1cb1be9872b861e
Author: Ludovic Courtès <address@hidden>
Date:   Thu Nov 9 09:58:33 2017 +0100

    system: Do not set 'TZ'.
    
    Fixes <https://bugs.gnu.org/29212>.
    Reported by Diego Nicola Barbato <address@hidden>.
    
    * gnu/system.scm (operating-system-environment-variables): Remove "TZ".
---
 gnu/system.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/system.scm b/gnu/system.scm
index 5f562b4..ce2c05f 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]