summaryrefslogtreecommitdiffstats
path: root/perl-install/fs/wild_device.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-10-01 13:00:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-10-01 13:00:26 +0000
commitb8d90de064669c1d80e39dc8bff4dcd446bd1465 (patch)
tree37bf41e40f15b536a7f1a13b5837e9807cc754e0 /perl-install/fs/wild_device.pm
parentc6b00d15044a71366c7b5e39631fed11e65d8323 (diff)
downloaddrakx-b8d90de064669c1d80e39dc8bff4dcd446bd1465.tar
drakx-b8d90de064669c1d80e39dc8bff4dcd446bd1465.tar.gz
drakx-b8d90de064669c1d80e39dc8bff4dcd446bd1465.tar.bz2
drakx-b8d90de064669c1d80e39dc8bff4dcd446bd1465.tar.xz
drakx-b8d90de064669c1d80e39dc8bff4dcd446bd1465.zip
fix analyzing symlink "/dev/foo/bar -> boo"
Diffstat (limited to 'perl-install/fs/wild_device.pm')
-rw-r--r--perl-install/fs/wild_device.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/fs/wild_device.pm b/perl-install/fs/wild_device.pm
index 4e2a3a849..0bedbabad 100644
--- a/perl-install/fs/wild_device.pm
+++ b/perl-install/fs/wild_device.pm
@@ -49,7 +49,7 @@ sub to_subpart {
if ($symlink && $symlink !~ m!^/!) {
my $keep = 1;
- if ($symlink =~ m!/!) {
+ if ($symlink =~ m!/! || $dev =~ m!/!) {
$symlink = MDK::Common::File::concat_symlink("/dev/" . dirname($dev), $symlink);
$symlink =~ s!^/dev/!! or $keep = 0;
}