From af36e8dd3c025d7593bda4f310612989927149d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20B=C3=A4chler?= Date: Sun, 13 Apr 2008 18:32:43 +0200 Subject: Always quote $TIMEZONE to fix FS#10178 --- rc.shutdown | 4 ++-- rc.sysinit | 2 +- 2 files changed, 3 insertions(+), 3 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" diff --git a/rc.sysinit b/rc.sysinit index d03be06..8ace8d3 100755 --- a/rc.sysinit +++ b/rc.sysinit @@ -310,7 +310,7 @@ if [ ! -f /var/lib/hwclock/adjtime ]; then fi 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 /sbin/hwclock $HWCLOCK_PARAMS -- cgit v1.2.3