From: Stephen Gran Date: Sun, 23 Aug 2009 12:39:45 +0000 (+0100) Subject: make cmp do what I meant X-Git-Tag: userdir-ldap-0.3.71~1 X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=commitdiff_plain;h=716ab67eda191413ce2c25ee23499945b506861f make cmp do what I meant Signed-off-by: Stephen Gran --- diff --git a/ud-replicate b/ud-replicate index d8b5f4e..86f4c1f 100755 --- a/ud-replicate +++ b/ud-replicate @@ -164,7 +164,7 @@ fi rndc_reload=0 if [ -e /var/lib/misc/thishost/dns-sshfp ]; then - if cmp /var/lib/misc/thishost/dns-sshfp $tempfile; then + if ! cmp -s /var/lib/misc/thishost/dns-sshfp $tempfile; then rndc_reload=1 fi fi