[Pkg-cron-devel] [SCM] Git repository for pkg-cron branch, master, updated. debian/3.0pl1-119-39-gb292c24

Javier Fernandez-Sanguino jfs at debian.org
Wed Mar 21 23:12:13 UTC 2012


The following commit has been merged in the master branch:
commit ba181a580c271a401095564c4af80b86a4a37e28
Author: Javier Fernandez-Sanguino <jfs at debian.org>
Date:   Thu Mar 22 00:10:51 2012 +0100

    Apply patch from Steve Allison to prevent checking two times the
    same filesystem (Debian bug #660879)

diff --git a/debian/standard.daily b/debian/standard.daily
index 543cf4c..0b08b57 100644
--- a/debian/standard.daily
+++ b/debian/standard.daily
@@ -10,6 +10,7 @@
 cd /
 LOCKFILE=/var/lock/cron.daily
 LOFO=lost+found
+SEENFS=""
 
 # When flock is available, avoid running more than once at a time 
 if `which flock >/dev/null`; then
@@ -42,6 +43,10 @@ do
     # Only check on FS where we might expect lost+found
     echo "$FSTYPE" | grep -q -E '^(ext2|ext3|ext4|xfs)$' || continue
 
+    # Only check a filesystem once
+    echo "$SEENFS" | grep -q -E "$DEV " && continue
+    SEENFS="$DEV $SEENFS"
+
     [ "$MTPT" = '/' ] && MTPT=""
     # Replace spaces in the path (\040)
     MTPT="`echo $MTPT | sed -e 's/\\040/ /g'`"

-- 
Git repository for pkg-cron



More information about the Pkg-cron-devel mailing list