diff options
author | Matt Wilson <msw@redhat.com> | 2001-03-28 04:35:00 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-03-28 04:35:00 +0000 |
commit | 4768ad47065d4b4e4504f30b7a3059a8ead277a6 (patch) | |
tree | 3425b2861e1d1615113f4847e0e9117b052babd1 | |
parent | 212c5e8c38491b4bc03a1924136b8ebad7aa431a (diff) | |
download | anaconda-4768ad47065d4b4e4504f30b7a3059a8ead277a6.tar.gz anaconda-4768ad47065d4b4e4504f30b7a3059a8ead277a6.tar.xz anaconda-4768ad47065d4b4e4504f30b7a3059a8ead277a6.zip |
fix #26649 - pass over each entry in proc
-rw-r--r-- | isys/probe.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/isys/probe.c b/isys/probe.c index 5e869a67b..a66956ef6 100644 --- a/isys/probe.c +++ b/isys/probe.c @@ -482,7 +482,7 @@ static int CompaqSmartArrayGetDevices(struct knownDevices * devices) { f = fopen(ctl, "r"); } - if (f) { + while (f) { while (fgets(buf, sizeof(buf) - 1, f)) { if (!strncmp(buf, "ida/", 4)) { ptr = strchr(buf, ':'); @@ -498,6 +498,7 @@ static int CompaqSmartArrayGetDevices(struct knownDevices * devices) { } sprintf(ctl, "%s/ida%d", path, ctlNum++); fclose(f); + f = fopen(ctl, "r"); } @@ -602,7 +603,7 @@ static int CompaqSmartArray5300GetDevices(struct knownDevices * devices) { f = fopen(ctl, "r"); } - if (f) { + while (f) { while (fgets(buf, sizeof(buf) - 1, f)) { if (!strncmp(buf, "cciss/", 6)) { ptr = strchr(buf, ':'); @@ -618,6 +619,7 @@ static int CompaqSmartArray5300GetDevices(struct knownDevices * devices) { } sprintf(ctl, "%s/cciss%d", path, ctlNum++); fclose(f); + f = fopen (ctl, "r"); } |