diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-07-05 02:21:32 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-07-05 02:21:32 +0000 |
commit | b6c3cec5e4422274a243e582c7725d62f0441297 (patch) | |
tree | 56ea3e0cffa616d97b6c2bf89a42b34a36a5f31f /perl-install | |
parent | 68298e59ffb8c88284a58617ed927faf63fefcf5 (diff) | |
download | drakx-b6c3cec5e4422274a243e582c7725d62f0441297.tar drakx-b6c3cec5e4422274a243e582c7725d62f0441297.tar.gz drakx-b6c3cec5e4422274a243e582c7725d62f0441297.tar.bz2 drakx-b6c3cec5e4422274a243e582c7725d62f0441297.tar.xz drakx-b6c3cec5e4422274a243e582c7725d62f0441297.zip |
don't set {major} and {minor} to 0 when the device doesn't exist
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/fs.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/fs.pm b/perl-install/fs.pm index 35399d3be..148f6cf23 100644 --- a/perl-install/fs.pm +++ b/perl-install/fs.pm @@ -142,7 +142,9 @@ sub subpart_from_wild_device_name { } if ($dev =~ m!^/(tmp|dev)/(.*)!) { my %part; - ($part{major}, $part{minor}) = unmakedev((stat "$::prefix$dev")[6]); + if (my $rdev = (stat "$::prefix$dev")[6]) { + ($part{major}, $part{minor}) = unmakedev($rdev); + } if (my $symlink = readlink("$::prefix$dev")) { if ($symlink =~ m|^[^/]+$|) { |