From af3ac0dc954d96855555aa8cb12633494d465a77 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 4 Dec 2008 09:40:14 -0800 Subject: unset the TZ envvar in 'functions' This prevents a local TZ variable from breaking daemon's when started by root. Daemon's should always respect the system's /etc/localtime Signed-off-by: Aaron Griffin --- functions | 3 +++ 1 file changed, 3 insertions(+) (limited to 'functions') diff --git a/functions b/functions index 70c75b1..cab4141 100644 --- a/functions +++ b/functions @@ -36,6 +36,9 @@ else fi unset TERM_COLORS +# clear the TZ envvar, so daemons always respect /etc/localtime +unset TZ + # colors: if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then C_MAIN="\033[1;37;40m" # main text -- cgit v1.2.3