summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-08-12 21:43:23 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-08-12 21:43:23 +0000
commite03f94cb575827ae939c90132604ee5af8545b7a (patch)
tree4cc5c45cabc3c8c1d4e5969f92a531dab513e918 /perl-install/devices.pm
parent107b1cbeace77c78d4885c138ca57d373a125bdf (diff)
downloaddrakx-backup-do-not-use-e03f94cb575827ae939c90132604ee5af8545b7a.tar
drakx-backup-do-not-use-e03f94cb575827ae939c90132604ee5af8545b7a.tar.gz
drakx-backup-do-not-use-e03f94cb575827ae939c90132604ee5af8545b7a.tar.bz2
drakx-backup-do-not-use-e03f94cb575827ae939c90132604ee5af8545b7a.tar.xz
drakx-backup-do-not-use-e03f94cb575827ae939c90132604ee5af8545b7a.zip
no_comment
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 9346b687e..ac72bc3ed 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -47,10 +47,10 @@ sub make($) {
-e $file and return $file; # assume nobody takes fun at creating files named as device
- if (/^sd(.)(\d\d)/) {
+ if (/^sd(.)(\d{0,2})/) {
$type = c::S_IFBLK();
$major = 8;
- $minor = ord($1) - ord('a') + $2;
+ $minor = ord($1) - ord('a') + ($2 || 0);
} elsif (/^hd(.)(\d{0,2})/) {
$type = c::S_IFBLK();
($major, $minor) =