From da509dd2934f0b3ae587cdfd312d2d64442fafef Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Sat, 16 Nov 2002 14:58:39 +0000 Subject: [PATCH] Do not emit a message on stderr when one of the compared files is shorter than the other. Reviewed by: roberto MFC after: 3 days --- etc/periodic/security/security.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/security/security.functions b/etc/periodic/security/security.functions index 8dba6dc0c28..20d3b8a90ee 100644 --- a/etc/periodic/security/security.functions +++ b/etc/periodic/security/security.functions @@ -63,7 +63,7 @@ check_diff() { cp ${tmpf} ${LOG}/${label}.today || rc=3 fi - if ! cmp ${LOG}/${label}.today ${tmpf} >/dev/null; then + if ! cmp -s ${LOG}/${label}.today ${tmpf} >/dev/null; then [ $rc -lt 1 ] && rc=1 echo "" echo "${msg}"