Tags: patch
This match may not be enough, but fixes the base case on my system at
least:
*** /usr/bin/rsnapshot~ Wed Apr 13 22:28:27 2005
--- /usr/bin/rsnapshot Wed Dec 28 00:40:15 2005
***************
*** 3221,3228 ****
return (0);
}
# make the system call to GNU cp
! $result = system( $config_vars{'cmd_cp'}, '-al', "$src", "$dest" );
if ($result != 0) {
print_err("$config_vars{'cmd_cp'} failed. Perhaps this is not
GNU cp?", 2);
return (0);
--- 3221,3231 ----
return (0);
}
+ # strip the final slash off the destination
+ $dest =~ /(.*)\//;
+
# make the system call to GNU cp
! $result = system( $config_vars{'cmd_cp'}, '-al', "$src", "$1" );
if ($result != 0) {
print_err("$config_vars{'cmd_cp'} failed. Perhaps this is not
GNU cp?", 2);
return (0);
--
Michael Welsh Duggan
([EMAIL PROTECTED])
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]