projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36a836d
)
Reverse my previous change, "::" is a GNU getopt extension that allows
author
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 22 Jul 2004 04:23:18 +0000
(
04:23
-0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Thu, 22 Jul 2004 04:23:18 +0000
(
04:23
-0000)
an optional argument.
Looks like a glibc bug to me
sysklogd/syslogd.c
patch
|
blob
|
history
diff --git
a/sysklogd/syslogd.c
b/sysklogd/syslogd.c
index 8534c0ad0ea3b2e85ca865ba1ea01e8b96bb2622..2023873a86316a45958c39c2b924edf98483ff00 100644
(file)
--- a/
sysklogd/syslogd.c
+++ b/
sysklogd/syslogd.c
@@
-31,6
+31,7
@@
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
+#include <getopt.h>
#include <netdb.h>
#include <paths.h>
#include <signal.h>
@@
-631,7
+632,7
@@
extern int syslogd_main(int argc, char **argv)
char *p;
/* do normal option parsing */
- while ((opt = getopt(argc, argv, "m:nO:s:Sb:R:LC:")) > 0) {
+ while ((opt = getopt(argc, argv, "m:nO:s:Sb:R:LC:
:
")) > 0) {
switch (opt) {
case 'm':
MarkInterval = atoi(optarg) * 60;