Resolves: rhbz#754031 --- loader/init.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/loader/init.c b/loader/init.c index b04d872..bb6c74d 100644 --- a/loader/init.c +++ b/loader/init.c @@ -510,7 +510,9 @@ int main(int argc, char **argv) { /* strip spaces */ while(*develstart == ' ') develstart++; - if(*develstart == '\0') break; + + /* the whole prompt is on the first line */ + if(*develstart == '\0' || *develstart == '\n') break; /* not the word we are looking for */ if (strncmp(develstart, "devel", 5)) { @@ -519,7 +521,7 @@ int main(int argc, char **argv) { } /* is it isolated? */ - if(((*(develstart+5)) == ' ' || (*(develstart+5)) == '\0')) { + if(((*(develstart+5)) == ' ' || (*(develstart+5)) == '\0' || (*(develstart+5)) == '\n')) { printf("Enabling development mode - cores will be dumped\n"); isDevelMode++; break; -- 1.7.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list