diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 07:11:12 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-25 07:11:12 +0000 |
commit | 49f15a6a330aba6658f7e67e386bade817a792e0 (patch) | |
tree | 5703414e211a13506ffbea2eda64d5a6fd7031b9 /syslogd.c | |
parent | 2b487ceb72281af8f125babdd8128101f93d792e (diff) | |
download | rsyslog-49f15a6a330aba6658f7e67e386bade817a792e0.tar.gz rsyslog-49f15a6a330aba6658f7e67e386bade817a792e0.tar.bz2 rsyslog-49f15a6a330aba6658f7e67e386bade817a792e0.zip |
added fix for startup permission checks - thanks to Michel Samia
Diffstat (limited to 'syslogd.c')
-rw-r--r-- | syslogd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5638,8 +5638,10 @@ static void checkPermissions() * It is useless to run anymore */ if( !(AcceptRemote && (atoi(LogPort) > 1024)) && !( bEnableTCP && (atoi(TCPLstnPort) > 1024)) ) { +#endif fprintf(stderr, "ERROR: Nothing to log, no reason to run. Please run rsyslog as root.\n"); exit(EXIT_FAILURE); +#ifdef SYSLOG_INET } #endif } |