Package: util-linux
Version: 2.13.1.1-1
Severity: normal

Hi,

if /etc/adjtime is a symlink to /var and the filesystem underneath /var
is not mounted the check ! -f /etc/adjtime succeeds, but echo … >
/etc/adjtime fails. You should better check if /etc/adjtime is a symlink
and the second check ! -e /etc/adjtime checks the presence of the file.

Bye, Jörg.

diff --git a/init.d/hwclockfirst.sh b/init.d/hwclockfirst.sh
index 5d49e28..95265e9 100755
--- a/init.d/hwclockfirst.sh
+++ b/init.d/hwclockfirst.sh
@@ -63,7 +63,7 @@ hwclocksh()
 
     case "$1" in
        start)
-           if [ -w /etc ] && [ ! -f /etc/adjtime ] && [ ! -e /etc/adjtime ]; 
then
+           if [ -w /etc ] && [ ! -L /etc/adjtime ] && [ ! -e /etc/adjtime ]; 
then
                echo "0.0 0 0.0" > /etc/adjtime
            fi
 

-- System Information:
Debian Release: unstable/experimental
  APT prefers unstable
  APT policy: (900, 'unstable'), (700, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 2.6.29-rc8
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages util-linux depends on:
ii  libc6                  2.9-6             GNU C Library: Shared libraries
ii  libncurses5            5.7+20090228-1    shared libraries for terminal hand
ii  libselinux1            2.0.71-1          SELinux shared libraries
ii  libslang2              2.1.3-3           The S-Lang programming library - r
ii  libuuid1               1.41.3-1          universally unique id library
ii  lsb-base               3.2-21            Linux Standard Base 3.2 init scrip
ii  tzdata                 2009c-1           time zone and daylight-saving time
ii  zlib1g                 1:1.2.3.3.dfsg-13 compression library - runtime

util-linux recommends no packages.

Versions of packages util-linux suggests:
ii  dosfstools                    3.0.2-1    utilities for making and checking 
ii  kbd                           1.15-1     Linux console font and keytable ut
pn  util-linux-locales            <none>     (no description available)

-- no debconf information

Attachment: signature.asc
Description: Digital signature http://en.wikipedia.org/wiki/OpenPGP

Reply via email to