diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-22 04:23:18 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-07-22 04:23:18 +0000 |
commit | f565801095f5b9b594aa26eb4acf6f09a8a9c15b (patch) | |
tree | a4e344fb59f32c4845003f7f32d918aa50f9f599 | |
parent | e0ada2baa45ea0d550fd9d7a9f4ed25b1bc63062 (diff) | |
download | busybox-w32-f565801095f5b9b594aa26eb4acf6f09a8a9c15b.tar.gz busybox-w32-f565801095f5b9b594aa26eb4acf6f09a8a9c15b.tar.bz2 busybox-w32-f565801095f5b9b594aa26eb4acf6f09a8a9c15b.zip |
Reverse my previous change, "::" is a GNU getopt extension that allows
an optional argument.
Looks like a glibc bug to me
git-svn-id: svn://busybox.net/trunk/busybox@8997 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | sysklogd/syslogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 8534c0ad0..2023873a8 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include <ctype.h> | 31 | #include <ctype.h> |
32 | #include <errno.h> | 32 | #include <errno.h> |
33 | #include <fcntl.h> | 33 | #include <fcntl.h> |
34 | #include <getopt.h> | ||
34 | #include <netdb.h> | 35 | #include <netdb.h> |
35 | #include <paths.h> | 36 | #include <paths.h> |
36 | #include <signal.h> | 37 | #include <signal.h> |
@@ -631,7 +632,7 @@ extern int syslogd_main(int argc, char **argv) | |||
631 | char *p; | 632 | char *p; |
632 | 633 | ||
633 | /* do normal option parsing */ | 634 | /* do normal option parsing */ |
634 | while ((opt = getopt(argc, argv, "m:nO:s:Sb:R:LC:")) > 0) { | 635 | while ((opt = getopt(argc, argv, "m:nO:s:Sb:R:LC::")) > 0) { |
635 | switch (opt) { | 636 | switch (opt) { |
636 | case 'm': | 637 | case 'm': |
637 | MarkInterval = atoi(optarg) * 60; | 638 | MarkInterval = atoi(optarg) * 60; |