@@ -311,9 +311,9 @@ foreach my $fs (read_file("/proc/self/mountinfo")) {
311311
312312 # Maybe this is a bind-mount of a filesystem we saw earlier?
313313 if (defined $fsByDev{$fields[2]}) {
314− # Make sure this isn't a btrfs subvolume
315− my ($status, @msg) = runCommand("btrfs subvol show $rootDir$mountPoint");
316− if (join("", @msg) =~ /ERROR:/) {
314+ # Make sure this isn't a btrfs subvolume.
315+ my $msg = `btrfs subvol show $rootDir$mountPoint`;
316+ if ($? != 0 || $msg =~ /ERROR:/s) {
317317 my $path = $fields[3]; $path = "" if $path eq "/";
318318 my $base = $fsByDev{$fields[2]};
319319 $base = "" if $base eq "/";