--syslog and --logfile are mutually exclusive.
This commit is contained in:
parent
15ad628f06
commit
6568cffd52
1 changed files with 2 additions and 0 deletions
|
@ -187,6 +187,7 @@ static bool parse_options(int argc, char **argv) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 's': /* syslog */
|
case 's': /* syslog */
|
||||||
|
use_logfile = false;
|
||||||
use_syslog = true;
|
use_syslog = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -225,6 +226,7 @@ static bool parse_options(int argc, char **argv) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 4: /* write log entries to a file */
|
case 4: /* write log entries to a file */
|
||||||
|
use_syslog = false;
|
||||||
use_logfile = true;
|
use_logfile = true;
|
||||||
if(!optarg && optind < argc && *argv[optind] != '-')
|
if(!optarg && optind < argc && *argv[optind] != '-')
|
||||||
optarg = argv[optind++];
|
optarg = argv[optind++];
|
||||||
|
|
Loading…
Reference in a new issue