diff options
author | Erik Andersen | 2000-01-13 04:43:48 +0000 |
---|---|---|
committer | Erik Andersen | 2000-01-13 04:43:48 +0000 |
commit | 05df239ed90584156b820dbf3ede638208eb440f (patch) | |
tree | 990a3d6a9beb21420fae1f7d14886c84a5ce3c12 /syslogd.c | |
parent | 9a9a261569df0c88038de48eb233890ca189e9c0 (diff) | |
download | busybox-05df239ed90584156b820dbf3ede638208eb440f.zip busybox-05df239ed90584156b820dbf3ede638208eb440f.tar.gz |
Bug fixes.
-Erik
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -337,11 +337,13 @@ extern int syslogd_main(int argc, char **argv) #ifdef BB_KLOGD int startKlogd = TRUE; #endif + int stopDoingThat = FALSE; char *p; char **argv1=argv; while (--argc > 0 && **(++argv1) == '-') { - while (*(++(*argv1))) { + stopDoingThat = FALSE; + while (stopDoingThat == FALSE && *(++(*argv1))) { switch (**argv1) { case 'm': if (--argc == 0) { @@ -362,6 +364,7 @@ extern int syslogd_main(int argc, char **argv) usage(syslogd_usage); } logFilePath = *(++argv1); + stopDoingThat = TRUE; break; default: usage(syslogd_usage); |