diff options
author | Francois Pons <fpons@mandriva.com> | 2000-01-07 09:41:23 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-01-07 09:41:23 +0000 |
commit | e28cc9776192f3d4bbc86bd2781106faf6d0b656 (patch) | |
tree | 0f943fad5881626372947dac6f41c8f41a5a4724 /perl-install/devices.pm | |
parent | 4a92ef9d28a3b4241186678c3fa3b4ebd365809d (diff) | |
download | drakx-backup-do-not-use-e28cc9776192f3d4bbc86bd2781106faf6d0b656.tar drakx-backup-do-not-use-e28cc9776192f3d4bbc86bd2781106faf6d0b656.tar.gz drakx-backup-do-not-use-e28cc9776192f3d4bbc86bd2781106faf6d0b656.tar.bz2 drakx-backup-do-not-use-e28cc9776192f3d4bbc86bd2781106faf6d0b656.tar.xz drakx-backup-do-not-use-e28cc9776192f3d4bbc86bd2781106faf6d0b656.zip |
*** empty log message ***
Diffstat (limited to 'perl-install/devices.pm')
-rw-r--r-- | perl-install/devices.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/devices.pm b/perl-install/devices.pm index ffc1aeaef..f4bbc0285 100644 --- a/perl-install/devices.pm +++ b/perl-install/devices.pm @@ -42,8 +42,11 @@ sub make($) { if (m,^(.*/(?:dev|tmp))/(.*),) { $_ = $2; } else { - $file = "/tmp/$_"; - -e $file or $file = "/dev/$_"; + #- lnx4win use a plain swap file, should not assume a leading /tmp or /dev. + unless (-f $file) { + $file = "/tmp/$_"; + -e $file or $file = "/dev/$_"; + } } -e $file and return $file; #- assume nobody takes fun at creating files named as device |