summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-03-17 11:34:12 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-03-17 11:34:12 -0500
commit52a6990bc7ab0b48d6d227a8dcb782cb1d419dd5 (patch)
treedfd0c38292db3ae9e14df571bf6c4e0655a8f328
parent15647a9f42a00406ec1c1c02515fe1e90825bd9b (diff)
Variable expansion quoting2008.03-1
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 <aaronmgriffin@gmail.com>
-rwxr-xr-xrc.sysinit2
1 files changed, 1 insertions, 1 deletions
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