summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/urpm.pm b/urpm.pm
index 5aee5533..3258ee3f 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -1077,8 +1077,8 @@ sub find_mntpoints {
$pdir .= "/$_";
$pdir =~ s,/+,/,g; $pdir =~ s,/$,,;
if (exists $fstab{$pdir}) {
- $mode eq 'mount' && ! $fstab{$_} and push @mntpoints, $pdir;
- $mode eq 'umount' && $fstab{$_} and unshift @mntpoints, $pdir;
+ $mode eq 'mount' && ! $fstab{$pdir} and push @mntpoints, $pdir;
+ $mode eq 'umount' && $fstab{$pdir} and unshift @mntpoints, $pdir;
$mode eq 'device' and push @mntpoints, $pdir, $fstab{$pdir};
}
}