diff --git a/btrbk b/btrbk index 02315ca..6b6b88a 100755 --- a/btrbk +++ b/btrbk @@ -1940,6 +1940,10 @@ sub system_list_mountinfo($) non_destructive => 1, ); return undef unless(defined($ret)); + unless(@$ret) { + ERROR "Failed to parse \"$vol->{URL_PREFIX}$file\": no output"; + return undef; + } my @mountinfo; foreach(@$ret) @@ -1964,6 +1968,11 @@ sub system_list_mountinfo($) } my %line = %+; + unless(defined(check_file($line{mount_point}, { absolute => 1 }))) { + ERROR "Ambiguous mount point in \"$vol->{URL_PREFIX}$file\": $line{mount_point}"; + return undef; + } + # merge super_options and mount_options to MNTOPS. my %mntops; foreach (split(',', delete($line{super_options})),