From 52a6990bc7ab0b48d6d227a8dcb782cb1d419dd5 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 17 Mar 2008 11:34:12 -0500 Subject: Variable expansion quoting This was missed, and caused some gross output if a user mistakenly had a space in their timezone (we should fail gracefully here, not let bash error). Signed-off-by: Aaron Griffin --- rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc.sysinit b/rc.sysinit index 62ddc52..7985288 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -336,7 +336,7 @@ stat_busy "Configuring System Clock" if [ ! -f /var/lib/hwclock/adjtime ]; then echo "0.0 0 0.0" > /var/lib/hwclock/adjtime fi -if [ "$TIMEZONE" != "" -a -e /usr/share/zoneinfo/$TIMEZONE ]; then +if [ "$TIMEZONE" != "" -a -e "/usr/share/zoneinfo/$TIMEZONE" ]; then /bin/rm -f /etc/localtime /bin/cp /usr/share/zoneinfo/$TIMEZONE /etc/localtime fi -- cgit v1.2.3