From f7ebcff60d81bfd1b2817f27c9ff901b4d0e64fc Mon Sep 17 00:00:00 2001 From: Matt Wilson Date: Wed, 28 Feb 2001 06:33:30 +0000 Subject: throw out extended partitions --- isys/probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'isys/probe.c') diff --git a/isys/probe.c b/isys/probe.c index 336b7dba2..69e334665 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -573,12 +573,12 @@ static int I2OGetDevices(struct knownDevices * devices) { start++; } ctl[i] = '\0'; - /* We don't want partitions just the disks ! */ if (i < 1) { free (buf); return 1; } - if ( !isdigit(ctl[i-2]) ){ + /* We don't want partitions just the disks ! */ + if ( !isdigit(ctl[i-1]) ){ if (!deviceKnown(devices, ctl)) { newDevice.name = strdup(ctl); newDevice.model = strdup("I2O Block Device"); -- cgit