aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/syslogd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 43e83b191..0be9ded06 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -337,11 +337,13 @@ extern int syslogd_main(int argc, char **argv)
337#ifdef BB_KLOGD 337#ifdef BB_KLOGD
338 int startKlogd = TRUE; 338 int startKlogd = TRUE;
339#endif 339#endif
340 int stopDoingThat = FALSE;
340 char *p; 341 char *p;
341 char **argv1=argv; 342 char **argv1=argv;
342 343
343 while (--argc > 0 && **(++argv1) == '-') { 344 while (--argc > 0 && **(++argv1) == '-') {
344 while (*(++(*argv1))) { 345 stopDoingThat = FALSE;
346 while (stopDoingThat == FALSE && *(++(*argv1))) {
345 switch (**argv1) { 347 switch (**argv1) {
346 case 'm': 348 case 'm':
347 if (--argc == 0) { 349 if (--argc == 0) {
@@ -362,6 +364,7 @@ extern int syslogd_main(int argc, char **argv)
362 usage(syslogd_usage); 364 usage(syslogd_usage);
363 } 365 }
364 logFilePath = *(++argv1); 366 logFilePath = *(++argv1);
367 stopDoingThat = TRUE;
365 break; 368 break;
366 default: 369 default:
367 usage(syslogd_usage); 370 usage(syslogd_usage);