fix root pool parsing for remote hosts

This commit is contained in:
Christoph Klaffl 2019-01-31 18:25:41 +01:00
parent c12b6d716b
commit f0fec5348e
No known key found for this signature in database
GPG Key ID: FC1C525C2A47CC28
1 changed files with 2 additions and 2 deletions

View File

@ -887,9 +887,9 @@ sub checkcommands {
# check for ZFS resume feature support
if ($resume) {
my @parts = split ('/', $args{'source'});
my @parts = split ('/', $sourcefs);
my $srcpool = $parts[0];
@parts = split ('/', $args{'target'});
@parts = split ('/', $targetfs);
my $dstpool = $parts[0];
$srcpool = escapeshellparam($srcpool);