diff options
author | Erik Troan <ewt@redhat.com> | 2001-10-04 22:48:20 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-10-04 22:48:20 +0000 |
commit | c3a90361768514a5d697726733184cdbcbb31942 (patch) | |
tree | f89d044c4438d14b55913308a2c7d564b030846d /loader/modules.c | |
parent | fc225c1f7f34facb3b4cdb8c80960020d1c2a4b1 (diff) | |
download | anaconda-c3a90361768514a5d697726733184cdbcbb31942.tar.gz anaconda-c3a90361768514a5d697726733184cdbcbb31942.tar.xz anaconda-c3a90361768514a5d697726733184cdbcbb31942.zip |
restrict the application of module arguments
Diffstat (limited to 'loader/modules.c')
-rw-r--r-- | loader/modules.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/loader/modules.c b/loader/modules.c index a264a0f03..ccaa5cbff 100644 --- a/loader/modules.c +++ b/loader/modules.c @@ -391,7 +391,8 @@ static int loadModule(const char * modName, char * path, moduleList modLoaded, return rc; } -/* loads a : separated list of modules */ +/* loads a : separated list of modules. the arg only applies to the + first module in the list */ int mlLoadModuleSet(const char * origModNames, void * location, moduleList modLoaded, moduleDeps modDeps, char ** args, moduleInfoSet modInfo, int flags) { @@ -458,7 +459,9 @@ int mlLoadModuleSet(const char * origModNames, void * location, /* insert the modules now */ for (l = list, p = paths; !i && *l; l++, p++) { - if (loadModule(*l, *p, modLoaded, args, modInfo, flags)) { + if (loadModule(*l, *p, modLoaded, + !strcmp(initialList[0], *l) ? args : NULL, + modInfo, flags)) { logMessage("failed to insert %s -- bailing\n", *p); i++; } |