From 49f15a6a330aba6658f7e67e386bade817a792e0 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 25 Jul 2007 07:11:12 +0000 Subject: added fix for startup permission checks - thanks to Michel Samia --- syslogd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'syslogd.c') 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 } -- cgit v1.2.3