Skip to content

Commit

Permalink
--syslog and --logfile are mutually exclusive.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsliepen committed Mar 14, 2015
1 parent 15ad628 commit 6568cff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tincd.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ static bool parse_options(int argc, char **argv) {
break;

case 's': /* syslog */
use_logfile = false;
use_syslog = true;
break;

Expand Down Expand Up @@ -225,6 +226,7 @@ static bool parse_options(int argc, char **argv) {
break;

case 4: /* write log entries to a file */
use_syslog = false;
use_logfile = true;
if(!optarg && optind < argc && *argv[optind] != '-')
optarg = argv[optind++];
Expand Down

0 comments on commit 6568cff

Please sign in to comment.