summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-08-16 15:55:34 +0000
committerChris Lumens <clumens@redhat.com>2005-08-16 15:55:34 +0000
commit51aa8d4b18f81b7e343cb26eba6eddb03f21dc63 (patch)
treee4bf5edf2eeb4f96fe70ed23a5207718f4adffde
parent09b6d6b38a56e04df7a0b3edd5ee750f7b03a08e (diff)
downloadanaconda-51aa8d4b18f81b7e343cb26eba6eddb03f21dc63.tar.gz
anaconda-51aa8d4b18f81b7e343cb26eba6eddb03f21dc63.tar.xz
anaconda-51aa8d4b18f81b7e343cb26eba6eddb03f21dc63.zip
Correctly detect when we're in a ks file section (dlehman, #165865).
-rw-r--r--loader2/kickstart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader2/kickstart.c b/loader2/kickstart.c
index 69f85aca4..6561662bc 100644
--- a/loader2/kickstart.c
+++ b/loader2/kickstart.c
@@ -162,8 +162,8 @@ int ksReadCommands(char * cmdFile, int flags) {
if (!*start || *start == '#') {
/* do nothing */
- } else if (!strcmp(start, "%packages") || !strcmp(start, "%post")
- || !strcmp(start, "%pre")) {
+ } else if (!strncmp(start, "%packages", 9) || !strncmp(start, "%post", 5)
+ || !strncmp(start, "%pre", 4)) {
inSection = 1;
} else if (*chptr == '\\') {
/* JKFIXME: this should be handled better, but at least we