summaryrefslogtreecommitdiffstats
path: root/isys/moduleinfo.c
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>1999-09-19 16:16:51 +0000
committerMatt Wilson <msw@redhat.com>1999-09-19 16:16:51 +0000
commit3c272a2fbb4e7df73f2807e0e5028a7e29b1c407 (patch)
tree6aa97fce33c70ad1b35f4df6d96fc84f41596da8 /isys/moduleinfo.c
parent47d60238152e3e5992c689b9039ace121d6f8742 (diff)
downloadanaconda-3c272a2fbb4e7df73f2807e0e5028a7e29b1c407.tar.gz
anaconda-3c272a2fbb4e7df73f2807e0e5028a7e29b1c407.tar.xz
anaconda-3c272a2fbb4e7df73f2807e0e5028a7e29b1c407.zip
execWithRedirect() takes filenames for stdin, etc
Diffstat (limited to 'isys/moduleinfo.c')
-rw-r--r--isys/moduleinfo.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/isys/moduleinfo.c b/isys/moduleinfo.c
index be6911db3..5e38f91c6 100644
--- a/isys/moduleinfo.c
+++ b/isys/moduleinfo.c
@@ -36,12 +36,20 @@ struct moduleInfo * isysGetModuleList(moduleInfoSet mis,
struct moduleInfo * isysFindModuleInfo(moduleInfoSet mis,
const char * moduleName) {
int i;
+ struct moduleInfo * found = NULL;
for (i = 0; i < mis->numModules; i++) {
- if (!strcmp(moduleName, mis->moduleList[i].moduleName))
- return mis->moduleList + i;
+ if (!strcmp(moduleName, mis->moduleList[i].moduleName)) {
+ if (!found)
+ found = mis->moduleList + i;
+ else if (found->path && !mis->moduleList[i].path)
+ ;
+ else
+ found = mis->moduleList + i;
+ }
}
- return NULL;
+
+ return found;
}
moduleInfoSet isysNewModuleInfoSet(void) {