Fixed wrong changes display when no real files were different

Fri, 26 Dec 2014 10:56:38 +0100

author
Michiel Broek <mbroek@mbse.eu>
date
Fri, 26 Dec 2014 10:56:38 +0100
changeset 21
735fe1b89e5a
parent 20
1d18ebb9e279
child 22
32af3eef438b

Fixed wrong changes display when no real files were different

cron.daily/security file | annotate | diff | comparison | revisions
security.d/chk_setid file | annotate | diff | comparison | revisions
--- a/cron.daily/security	Tue Apr 15 14:45:38 2014 +0200
+++ b/cron.daily/security	Fri Dec 26 10:56:38 2014 +0100
@@ -22,7 +22,7 @@
 # Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
 #############################################################################
 
-VERSION=0.21
+VERSION=0.22
 export PATH=/bin:/usr/bin:/sbin:/usr/sbin
 umask 077
 LANG=C; export LANG
--- a/security.d/chk_setid	Tue Apr 15 14:45:38 2014 +0200
+++ b/security.d/chk_setid	Fri Dec 26 10:56:38 2014 +0100
@@ -51,14 +51,14 @@
 if [ ! -f $CURR ]; then
     # No database, install new database
     find $FSS \( -mount \( -perm -u+s -a ! -type d \) -o \( -perm -g+s -a ! -type d \) \) -print0 2>/dev/null | \
-	xargs -0 /bin/ls -ld --full-time | sort -k9 > $CURR
+	xargs -0r /bin/ls -ld --full-time | sort -k9 > $CURR
     exit
 fi
 
 # Database is present, create temp database
 #
 find $FSS \( -mount \( -perm -u+s -a ! -type d \) -o \( -perm -g+s -a ! -type d \) \) -print0 2>/dev/null | \
-    xargs -0 /bin/ls -ld --full-time | sort -k9 > $TMP1
+    xargs -0r /bin/ls -ld --full-time | sort -k9 > $TMP1
 changed=0
 
 diff $TMP1 $CURR > $TMP2

mercurial