diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 11:54:03 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-12-19 11:54:03 +0000 |
commit | d21a445561d365e3345cdbce40e39ab6340bff9a (patch) | |
tree | 68681d16032f35127237664f9d1ac31a9efaff4f | |
parent | 9bf43f592d7e367db09d10e0d0e17060412f2400 (diff) | |
download | rsyslog-d21a445561d365e3345cdbce40e39ab6340bff9a.tar.gz rsyslog-d21a445561d365e3345cdbce40e39ab6340bff9a.tar.bz2 rsyslog-d21a445561d365e3345cdbce40e39ab6340bff9a.zip |
added forward-compatibility fix, reserved -c command line option
-rw-r--r-- | syslogd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6292,7 +6292,7 @@ int main(int argc, char **argv) /* END core initializations */ - while ((ch = getopt(argc, argv, "46Aa:dehi:f:g:l:m:nop:qQr::s:t:u:vwx")) != EOF) { + while ((ch = getopt(argc, argv, "46Aa:c:dehi:f:g:l:m:nop:qQr::s:t:u:vwx")) != EOF) { switch((char)ch) { case '4': family = PF_INET; @@ -6316,6 +6316,9 @@ int main(int argc, char **argv) else fprintf(stderr, "rsyslogd: Out of descriptors, ignoring %s\n", optarg); break; + case 'c': /* forward-compatibility: sets mode in v3+ */ + fprintf(stderr, "-c option not yet supported, reserved for future use\n"); + break; case 'd': /* debug */ Debug = 1; break; |