summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-12-04 17:43:16 +0000
committerJeremy Katz <katzj@redhat.com>2002-12-04 17:43:16 +0000
commitba883509ee57d96c4b28c513baa62ba18c34c23b (patch)
treeaaf7174ea50cfa194d6f57a04f89e93397fa35fd /loader2
parent8adf5c517e56f89c9193cdd27680b7f6d830c735 (diff)
downloadanaconda-ba883509ee57d96c4b28c513baa62ba18c34c23b.tar.gz
anaconda-ba883509ee57d96c4b28c513baa62ba18c34c23b.tar.xz
anaconda-ba883509ee57d96c4b28c513baa62ba18c34c23b.zip
make sure we have some arguments (related to #78986)
Diffstat (limited to 'loader2')
-rw-r--r--loader2/loader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/loader2/loader.c b/loader2/loader.c
index 38f749959..5b0b4aebd 100644
--- a/loader2/loader.c
+++ b/loader2/loader.c
@@ -520,20 +520,20 @@ static int parseCmdLineFlags(int flags, struct loaderData_s * loaderData,
flags |= LOADER_FLAGS_SERIAL;
else if (!strncasecmp(argv[i], "debug=", 6))
setLogLevel(strtol(argv[i] + 6, (char **)NULL, 10));
- /*JKFIXME: add back kickstart stuff */
else if (!strncasecmp(argv[i], "ksdevice=", 9)) {
loaderData->netDev = strdup(argv[i] + 9);
loaderData->netDev_set = 1;
}
- /* JKFIXME: this isn't quite right... */
else if (!strcasecmp(argv[i], "ks") || !strncasecmp(argv[i], "ks=", 3))
loaderData->ksFile = strdup(argv[i]);
else if (!strncasecmp(argv[i], "display=", 8))
setenv("DISPLAY", argv[i] + 8, 1);
- else if (!strncasecmp(argv[i], "lang=", 5)) {
+ else if ((!strncasecmp(argv[i], "lang=", 5)) &&
+ (strlen(argv[i]) > 5)) {
loaderData->lang = strdup(argv[i] + 5);
loaderData->lang_set = 1;
- } else if (!strncasecmp(argv[i], "keymap=", 7)) {
+ } else if (!strncasecmp(argv[i], "keymap=", 7) &&
+ (strlen(argv[i]) > 7)) {
loaderData->kbd = strdup(argv[i] + 7);
loaderData->kbd_set = 1;
} else if (!strncasecmp(argv[i], "method=", 7)) {