summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-25 07:11:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-25 07:11:12 +0000
commit49f15a6a330aba6658f7e67e386bade817a792e0 (patch)
tree5703414e211a13506ffbea2eda64d5a6fd7031b9
parent2b487ceb72281af8f125babdd8128101f93d792e (diff)
downloadrsyslog-49f15a6a330aba6658f7e67e386bade817a792e0.tar.gz
rsyslog-49f15a6a330aba6658f7e67e386bade817a792e0.tar.xz
rsyslog-49f15a6a330aba6658f7e67e386bade817a792e0.zip
added fix for startup permission checks - thanks to Michel Samia
-rw-r--r--syslogd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/syslogd.c b/syslogd.c
index 45423b36..5ab17880 100644
--- a/syslogd.c
+++ b/syslogd.c
@@ -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
}