summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-03-22 21:06:05 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-03-22 21:06:05 +0000
commit44e7ea56795982e16cd0a6ceda3161d2b57324cc (patch)
treedfa9e91625742bdc1549eef9c62edd7a1ca9707f /perl-install/detect_devices.pm
parent5d14a8d3f9cb5107a46d5f1a27e1a1b166bf7356 (diff)
downloaddrakx-backup-do-not-use-44e7ea56795982e16cd0a6ceda3161d2b57324cc.tar
drakx-backup-do-not-use-44e7ea56795982e16cd0a6ceda3161d2b57324cc.tar.gz
drakx-backup-do-not-use-44e7ea56795982e16cd0a6ceda3161d2b57324cc.tar.bz2
drakx-backup-do-not-use-44e7ea56795982e16cd0a6ceda3161d2b57324cc.tar.xz
drakx-backup-do-not-use-44e7ea56795982e16cd0a6ceda3161d2b57324cc.zip
detect_devices: only look at valid scsi devices in /sys
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 78348856f..643f3a376 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -202,7 +202,9 @@ sub getSCSI() {
my @l;
foreach (all($dev_dir)) {
- my ($host, $channel, $id, $lun) = split ':' or log::l("bad entry in $dev_dir: $_"), next;
+ my ($host, $channel, $id, $lun) = split ':';
+ defined $lun or log::l("bad entry in $dev_dir: $_"), next;
+
my $dir = "$dev_dir/$_";
# handle both old and new kernels: