The -N option takes one argument, hence the getopt control string
needs to have a colon for it. Looks like nobody has tested this so far.
This commit is contained in:
parent
53cf67c77f
commit
94aaebe4cf
@ -137,7 +137,7 @@ main(argc, argv)
|
||||
|
||||
openlog("savecore", LOG_PERROR, LOG_DAEMON);
|
||||
|
||||
while ((ch = getopt(argc, argv, "cdfNvz")) != EOF)
|
||||
while ((ch = getopt(argc, argv, "cdfN:vz")) != EOF)
|
||||
switch(ch) {
|
||||
case 'c':
|
||||
clear = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user