diff options
author | Thomas Bächler <thomas@archlinux.org> | 2008-04-13 18:32:43 +0200 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2008-04-13 18:32:43 +0200 |
commit | af36e8dd3c025d7593bda4f310612989927149d1 (patch) | |
tree | 245a84142f81aff21494eec2eb3532dc7768ec89 /rc.shutdown | |
parent | 521d7678cecb3018923f7c869bc8a5f74dc29268 (diff) | |
download | initscripts-af36e8dd3c025d7593bda4f310612989927149d1.tar.xz |
Always quote $TIMEZONE to fix FS#10178
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-x | rc.shutdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.shutdown b/rc.shutdown index a572eeb..024a899 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -55,9 +55,9 @@ stat_busy "Saving Random Seed" stat_done stat_busy "Saving System Clock" -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 + /bin/cp "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime fi HWCLOCK_PARAMS="--systohc" |