summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-02-28 06:33:30 +0000
committerMatt Wilson <msw@redhat.com>2001-02-28 06:33:30 +0000
commitf7ebcff60d81bfd1b2817f27c9ff901b4d0e64fc (patch)
treefab0b40055219150af2b5d48078dddd5b41fff78 /isys
parentd0da903ec4620cde7f7f6a23e3e10d178220355d (diff)
downloadanaconda-f7ebcff60d81bfd1b2817f27c9ff901b4d0e64fc.tar.gz
anaconda-f7ebcff60d81bfd1b2817f27c9ff901b4d0e64fc.tar.xz
anaconda-f7ebcff60d81bfd1b2817f27c9ff901b4d0e64fc.zip
throw out extended partitions
Diffstat (limited to 'isys')
-rw-r--r--isys/probe.c4
1 files changed, 2 insertions, 2 deletions
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");