summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-02-23 17:14:48 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-02-23 17:14:48 +0000
commit68f3e3fdf8a30198c9a03b4d90954a821fd19ec4 (patch)
tree0e8a17bafde5a5aac6a9c01f5e6f134fdfd60e6d
parent4c54aeb214f29a3e2fd017a839e18440c32aa596 (diff)
downloaddrakx-backup-do-not-use-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar
drakx-backup-do-not-use-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar.gz
drakx-backup-do-not-use-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar.bz2
drakx-backup-do-not-use-68f3e3fdf8a30198c9a03b4d90954a821fd19ec4.tar.xz
drakx-backup-do-not-use-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
-rw-r--r--perl-install/devices.pm4
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.