From 68f3e3fdf8a30198c9a03b4d90954a821fd19ec4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Sat, 23 Feb 2002 17:14:48 +0000 Subject: (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 --- perl-install/devices.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- cgit v1.2.1