diff options
author | thomas <thomas@FreeBSD.org> | 2002-11-16 14:58:39 +0000 |
---|---|---|
committer | thomas <thomas@FreeBSD.org> | 2002-11-16 14:58:39 +0000 |
commit | dfc9d731c3e93b62abb8d928c3365cacc404e93c (patch) | |
tree | 43bc94b76f521b0d54621df29aa0eed7ff5057de /etc/periodic | |
parent | e4fc2471bb622e2d8a40e54a5a9638477aa60ece (diff) | |
download | FreeBSD-src-dfc9d731c3e93b62abb8d928c3365cacc404e93c.zip FreeBSD-src-dfc9d731c3e93b62abb8d928c3365cacc404e93c.tar.gz |
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
Diffstat (limited to 'etc/periodic')
-rw-r--r-- | etc/periodic/security/security.functions | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/security/security.functions b/etc/periodic/security/security.functions index 8dba6dc..20d3b8a 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}" |