diff --git a/syncoid b/syncoid index ec6ae9d..23271d5 100755 --- a/syncoid +++ b/syncoid @@ -1503,6 +1503,8 @@ sub getsnaps() { my $fsescaped = escapeshellparam($fs); if ($isroot) { $mysudocmd = ''; } else { $mysudocmd = $sudocmd; } + my $rhostOriginal = $rhost; + if ($rhost ne '') { $rhost = "$sshcmd $rhost"; # double escaping needed @@ -1520,7 +1522,7 @@ sub getsnaps() { my @rawsnaps = ; close FH or do { # fallback (solaris for example doesn't support the -t option) - return getsnapsfallback($type,$rhost,$fs,$isroot,%snaps); + return getsnapsfallback($type,$rhostOriginal,$fs,$isroot,%snaps); }; # this is a little obnoxious. get guid,creation returns guid,creation on two separate lines