summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--urpm/sys.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/urpm/sys.pm b/urpm/sys.pm
index a0096a42..97f37435 100644
--- a/urpm/sys.pm
+++ b/urpm/sys.pm
@@ -73,9 +73,10 @@ sub find_mntpoints {
#- try to follow symlink, too complex symlink graph may not be seen.
#- check the possible mount point.
my @paths = split '/', $dir;
+ my $pdir = '';
while (defined ($_ = shift @paths)) {
length($_) or next;
- my $pdir .= "/$_";
+ $pdir .= "/$_";
$pdir =~ s,/+,/,g; $pdir =~ s,/$,,;
if (exists($fstab{$pdir})) {
ref($infos) and push @mntpoints, $pdir;