Use "exit 1" in atomic-rsync for error exit.
authorWayne Davison <wayned@samba.org>
Sun, 5 Apr 2020 23:23:07 +0000 (16:23 -0700)
committerWayne Davison <wayned@samba.org>
Sun, 5 Apr 2020 23:23:07 +0000 (16:23 -0700)
Fixes bug #15469.

support/atomic-rsync

index 9e620cfe2dc5cb2095f57f0c50ed67da0b56f0d3..79c2edfeff60a82046589b429ff9c7c46c203004 100755 (executable)
@@ -59,7 +59,7 @@ if (system($RSYNC_PROG, "--link-dest=$dest_dir", @ARGV)) {
     } else {
        printf "child exited with value %d\n", $? >> 8;
     }
-    exit $?;
+    exit 1;
 }
 
 if (!defined $old_dir) {