Package: cron
Version: 3.0pl1-88
Severity: important

There is something wrong with the error checking of  /etc/cron.daily/standard
The file does not seem to be pure sh compatible (dash). See below.

A guess for solution

    All '==' bashism tests must be converted to pure '=' sh tests.

Environment:

    # ls -la /bin/sh 
    lrwxrwxrwx  1 root root 4 2005-08-21 18:18 /bin/sh -> dash

Script line:

     61 # Get a list of the (potential) ext2, ext3 and xfs l+f directories
     62 df -P --type=ext2 --type=ext3 --type=xfs |
     63 awk '/\/dev\// { print }' | sed -e 's/ [[:space:]]*/ /g'  |
     64 while read mount block used avail perc mp; do
     65         [ "$mp" == "/" ] && mp=""
     66         echo "$mp/lost+found"

    # df -P --type=ext2 --type=ext3 --type=xfs |awk '/\/dev\// { print }' | sed 
-e 's/ [[:space:]]*/ /g'
    /dev/hda7 460437 310747 125125 72% /
    /dev/hda5 481764 294158 161904 65% /mnt/local/debian
    
Example run:

    # sh -x /etc/cron.daily/standard
    + bak=/var/backups
    + LOCKFILE=/var/lock/cron.daily
    + umask 022
    + [ -x /usr/bin/lockfile-create ]
    + cd /var/backups
    + cmp -s passwd.bak /etc/passwd
    + cmp -s group.bak /etc/group
    + [ -f /etc/shadow ]
    + cmp -s shadow.bak /etc/shadow
    + [ -f /etc/gshadow ]
    + cmp -s gshadow.bak /etc/gshadow
    + cd /var/backups
    + cmp -s dpkg.status.0 /var/lib/dpkg/status
    + cp -p /var/lib/dpkg/status dpkg.status
    + savelog -c 7 dpkg.status
    + df -P --type=ext2 --type=ext3 --type=xfs
    + awk /\/dev\// { print }
    + sed -e s/ [[:space:]]*/ /g
    + read mount block used avail perc mp
    + read lfdir
    + [ / == / ]
>   [: 1: ==: unexpected operator
    + echo //lost+found
    + read mount block used avail perc mp
    + [ /mnt/local/debian == / ]
>   [: 1: ==: unexpected operator
    + echo /mnt/local/debian/lost+found
    + read mount block used avail perc mp
    + [ -d //lost+found ]
    + ls -1 //lost+found
    + grep -v lost+found$
    + sed s/^/    /
    + more_lost_found=
    + [ -n  ]
    + read lfdir
    + [ -d /mnt/local/debian/lost+found ]
    + ls -1 /mnt/local/debian/lost+found
    + grep -v lost+found$
    + sed s/^/    /
    + more_lost_found=
    + [ -n  ]
    + read lfdir
    + [ -n  ]
    + [ -n  ]
    + [ -x /usr/bin/lockfile-create ]



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.12-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages cron depends on:
ii  adduser                       3.67       Add and remove users and groups
ii  debianutils                   2.14.2     Miscellaneous utilities specific t
ii  libc6                         2.3.5-4    GNU C Library: Shared libraries an
ii  libpam0g                      0.76-23    Pluggable Authentication Modules l
ii  libselinux1                   1.24-4     SELinux shared libraries

Versions of packages cron recommends:
ii  nullmailer [mail-transport-ag 1:1.00-1   simple relay-only mail transport a

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to