diff options
author | Pascal Rigaux <pixel@mandriva.com> | 1999-08-12 21:43:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 1999-08-12 21:43:23 +0000 |
commit | e03f94cb575827ae939c90132604ee5af8545b7a (patch) | |
tree | 4cc5c45cabc3c8c1d4e5969f92a531dab513e918 /perl-install/devices.pm | |
parent | 107b1cbeace77c78d4885c138ca57d373a125bdf (diff) | |
download | drakx-e03f94cb575827ae939c90132604ee5af8545b7a.tar drakx-e03f94cb575827ae939c90132604ee5af8545b7a.tar.gz drakx-e03f94cb575827ae939c90132604ee5af8545b7a.tar.bz2 drakx-e03f94cb575827ae939c90132604ee5af8545b7a.tar.xz drakx-e03f94cb575827ae939c90132604ee5af8545b7a.zip |
no_comment
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 4 |
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) = |