From: Wayne Davison Date: Fri, 10 Oct 2008 13:55:21 +0000 (-0700) Subject: Fix the error message on one of the rename operations. X-Git-Tag: v3.0.5pre1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1220d62f49ce39d924fc916235b30916c7da6b7;p=thirdparty%2Frsync.git Fix the error message on one of the rename operations. --- diff --git a/support/atomic-rsync b/support/atomic-rsync index 64967367..33a493c2 100755 --- a/support/atomic-rsync +++ b/support/atomic-rsync @@ -48,7 +48,7 @@ if (system($RSYNC_PROG, "--link-dest=$dest_dir", @ARGV)) { exit $?; } -rename($dest_dir, $old_dir) or die "Unable to rename $new_dir to $old_dir: $!"; +rename($dest_dir, $old_dir) or die "Unable to rename $dest_dir to $old_dir: $!"; rename($new_dir, $dest_dir) or die "Unable to rename $new_dir to $dest_dir: $!"; exit;