diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-03-17 11:34:12 -0500 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-03-17 11:34:12 -0500 |
commit | 52a6990bc7ab0b48d6d227a8dcb782cb1d419dd5 (patch) | |
tree | dfd0c38292db3ae9e14df571bf6c4e0655a8f328 /rc.sysinit | |
parent | 15647a9f42a00406ec1c1c02515fe1e90825bd9b (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>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-x | rc.sysinit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |