diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-02-23 17:14:48 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-02-23 17:14:48 +0000 |
commit | 68f3e3fdf8a30198c9a03b4d90954a821fd19ec4 (patch) | |
tree | 0e8a17bafde5a5aac6a9c01f5e6f134fdfd60e6d /perl-install/devices.pm | |
parent | 4c54aeb214f29a3e2fd017a839e18440c32aa596 (diff) | |
download | drakx-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar drakx-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar.gz drakx-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar.bz2 drakx-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar.xz drakx-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.zip |
(devices::make): following a good advice from Andrej Borsenkow, return the
file even if the device file doesn't exist the caller will fail or not. The
advantage is better compatibility than raising an exception
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index 0423e5813..38df41d5c 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -170,7 +170,9 @@ sub make($) { if ($file =~ m|/dev/| && -e '/dev/.devfsd') { #- argh, creating devices is no good with devfs... - die "devices are handled by devfsd, and $file doesn't exist"; + #- return the file even if the device file doesn't exist + #- the caller will fail or not, better compatibility than raising an exception here + return $file; } #- make a directory for this inode if needed. |