mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
Reverse my previous change, "::" is a GNU getopt extension that allows
an optional argument. Looks like a glibc bug to me
This commit is contained in:
parent
36a836d564
commit
5529b7bb87
@ -31,6 +31,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#include <getopt.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <paths.h>
|
#include <paths.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -631,7 +632,7 @@ extern int syslogd_main(int argc, char **argv)
|
|||||||
char *p;
|
char *p;
|
||||||
|
|
||||||
/* do normal option parsing */
|
/* 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) {
|
switch (opt) {
|
||||||
case 'm':
|
case 'm':
|
||||||
MarkInterval = atoi(optarg) * 60;
|
MarkInterval = atoi(optarg) * 60;
|
||||||
|
Loading…
Reference in New Issue
Block a user