mirror of https://github.com/jimsalterjrs/sanoid
fix snapshot listing fallback
This commit is contained in:
parent
ef601eb96b
commit
4f150ec6ec
4
syncoid
4
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 = <FH>;
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue