From: Wayne Davison Date: Tue, 30 Sep 2008 04:54:49 +0000 (-0700) Subject: Fix the error message on one of the rename operations. X-Git-Tag: v3.1.0pre1~466 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2c11e80e2e4bab0d88fc46a7aa9a9bdf13462fcb;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;