summaryrefslogtreecommitdiffstats
path: root/perl-install/devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-11-25 12:14:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-11-25 12:14:11 +0000
commit7f5508ce30ddb89239136c5d81c4b3e8368351c0 (patch)
treeb4f4a3e186c60a4d7a540024770e2f261ee5244f /perl-install/devices.pm
parent21499786291db824f9745f4c0875eded9d44370d (diff)
downloaddrakx-backup-do-not-use-7f5508ce30ddb89239136c5d81c4b3e8368351c0.tar
drakx-backup-do-not-use-7f5508ce30ddb89239136c5d81c4b3e8368351c0.tar.gz
drakx-backup-do-not-use-7f5508ce30ddb89239136c5d81c4b3e8368351c0.tar.bz2
drakx-backup-do-not-use-7f5508ce30ddb89239136c5d81c4b3e8368351c0.tar.xz
drakx-backup-do-not-use-7f5508ce30ddb89239136c5d81c4b3e8368351c0.zip
we don't use /tmp for devices anymore
(this comes from long ago when redhat code was using a ro /dev and creating other devices in /tmp)
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r--perl-install/devices.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm
index 23e45c43f..5ebb848ba 100644
--- a/perl-install/devices.pm
+++ b/perl-install/devices.pm
@@ -161,10 +161,9 @@ sub entry {
sub make($) {
local $_ = my $file = $_[0];
- if (m,^(.*/(?:dev|tmp))/(.*),) {
+ if (m!^(.*/dev)/(.*)!) {
$_ = $2;
} else {
- $file =~ m|^/| && -e $file or $file = "/tmp/$_";
$file =~ m|^/| && -e $file or $file = "/dev/$_";
}
-e $file and return $file; #- assume nobody takes fun at creating files named as device