make cmp do what I meant
authorStephen Gran <steve@lobefin.net>
Sun, 23 Aug 2009 12:39:45 +0000 (13:39 +0100)
committerStephen Gran <steve@lobefin.net>
Sun, 23 Aug 2009 12:39:45 +0000 (13:39 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
ud-replicate

index d8b5f4e..86f4c1f 100755 (executable)
@@ -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