summaryrefslogtreecommitdiffstats
path: root/tools/syslogd.c
diff options
context:
space:
mode:
authorvarmojfekoj <theinric@redhat.com>2008-04-24 14:29:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-24 14:29:11 +0200
commit77b1cdf743a9278ec7b94f26f419966f5d4d821c (patch)
tree59aa27cc5dc379a465a11541b880d6264b7a21a0 /tools/syslogd.c
parent05982d4f12cdf9ec778922aa758628ef487983bd (diff)
downloadrsyslog-77b1cdf743a9278ec7b94f26f419966f5d4d821c.tar.gz
rsyslog-77b1cdf743a9278ec7b94f26f419966f5d4d821c.tar.xz
rsyslog-77b1cdf743a9278ec7b94f26f419966f5d4d821c.zip
-c option no longer must be the first option
Thanks to varmjofekoj for the patch Signed-off-by: Rainer Gerhards <rgerhards@adiscon.com>
Diffstat (limited to 'tools/syslogd.c')
-rw-r--r--tools/syslogd.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/syslogd.c b/tools/syslogd.c
index 4327ab7f..870925a2 100644
--- a/tools/syslogd.c
+++ b/tools/syslogd.c
@@ -2952,7 +2952,6 @@ int realMain(int argc, char **argv)
extern int optind;
extern char *optarg;
struct sigaction sigAct;
- int bIsFirstOption = 1;
int bEOptionWasGiven = 0;
int bImUxSockLoaded = 0; /* already generated a $ModLoad imuxsock? */
char *arg; /* for command line option processing */
@@ -2997,11 +2996,6 @@ int realMain(int argc, char **argv)
CHKiRet(bufOptAdd(ch, optarg));
break;
case 'c': /* compatibility mode */
- if(!bIsFirstOption) {
- fprintf(stderr, "-c option MUST be specified as the first option - aborting...\n");
- usage();
- exit(1);
- }
iCompatibilityMode = atoi(optarg);
break;
case 'd': /* debug - must be handled now, so that debug is active during init! */
@@ -3042,7 +3036,6 @@ int realMain(int argc, char **argv)
default:
usage();
}
- bIsFirstOption = 0; /* we already saw an option character */
}
if ((argc -= optind))