summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index f5cae86430..18f1240bbd 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -102,10 +102,10 @@ void setup_logging(char *pname,BOOL interactive)
char *p = strrchr(pname,'/');
if (p) pname = p+1;
#ifdef LOG_DAEMON
- openlog(pname, LOG_PID, LOG_DAEMON);
-#else /* LOG_DAEMON - for old systems that have no facility codes. */
+ openlog(pname, LOG_PID, SYSLOG_FACILITY);
+#else /* for old systems that have no facility codes. */
openlog(pname, LOG_PID);
-#endif /* LOG_DAEMON */
+#endif
}
#endif
if (interactive) {