summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2010-06-04 09:10:18 +0000
committerPascal Terjan <pterjan@mandriva.org>2010-06-04 09:10:18 +0000
commitd178def517a37f909a43e970fc8ae6cb10d3af05 (patch)
tree6c50da532237d67bee082980b0398d266e903b5e /perl-install/devices.pm
parent87b2af4f944cb3f31593ee04d691c23428f74c72 (diff)
downloaddrakx-d178def517a37f909a43e970fc8ae6cb10d3af05.tar
drakx-d178def517a37f909a43e970fc8ae6cb10d3af05.tar.gz
drakx-d178def517a37f909a43e970fc8ae6cb10d3af05.tar.bz2
drakx-d178def517a37f909a43e970fc8ae6cb10d3af05.tar.xz
drakx-d178def517a37f909a43e970fc8ae6cb10d3af05.zip
lookup major:minor of devices outside $::prefix
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 3b2761ad0..719472cea 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -176,8 +176,8 @@ sub entry {
# Try to access directly the device
# Now device mapper devices are links and do not appear in /proc or /sys
unless ($type) {
- if (-e "$::prefix/dev/$_") {
- my (undef,undef,$mode,undef,undef,undef,$rdev,undef) = stat("$::prefix/dev/$_");
+ if (-e "/dev/$_") {
+ my (undef,undef,$mode,undef,undef,undef,$rdev,undef) = stat("/dev/$_");
($major, $minor) = unmakedev($rdev);
$type = $mode & c::S_IFMT();
}