Package: cron Version: 3.0pl1-103 Severity: normal Tags: patch Cron keeps mailing me:
/etc/cron.daily/standard: df: no file systems processed The offending line is: df -P --type=ext2 --type=ext3 --type=xfs I don't have any mounted filesystems of those types, so df errors out. The attached patch simply redirects df's stderr to /dev/null; I don't know if that's a reasonable solution, but I'm using it now. Thanks, Corey -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.24 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/bash Versions of packages cron depends on: ii adduser 3.105 add and remove users and groups ii debianutils 2.28.2 Miscellaneous utilities specific t ii libc6 2.7-6 GNU C Library: Shared libraries ii libpam0g 0.99.7.1-5 Pluggable Authentication Modules l ii libselinux1 2.0.15-2+b1 SELinux shared libraries ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip Versions of packages cron recommends: ii postfix [mail-transport-agent 2.4.6-5 High-performance mail transport ag -- no debconf information
diff -Naur cron-3.0pl1.orig/debian/standard.daily cron-3.0pl1/debian/standard.daily --- cron-3.0pl1.orig/debian/standard.daily 2008-02-02 07:32:38.000000000 -0800 +++ cron-3.0pl1/debian/standard.daily 2008-02-02 07:44:07.000000000 -0800 @@ -61,7 +61,7 @@ # Check to see if any files are in lost+found directories and warn admin # # Get a list of the (potential) ext2, ext3 and xfs l+f directories -df -P --type=ext2 --type=ext3 --type=xfs | +df -P --type=ext2 --type=ext3 --type=xfs 2>/dev/null | awk '/\/dev\// { print }' | sed -e 's/ [[:space:]]*/ /g' | while read mount block used avail perc mp; do [ "$mp" = "/" ] && mp=""