summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-12-03 03:21:25 +0000
committerAndrew Tridgell <tridge@samba.org>1997-12-03 03:21:25 +0000
commitafe88facbfb85113105bf516e066b6c1e971f6b7 (patch)
tree0c4ff0ed1d3780b7ca64ea57660a0bd2649b3b0f /source/lib
parent465edceecf86cafd225e5662b01242f87f0bd603 (diff)
downloadsamba-afe88facbfb85113105bf516e066b6c1e971f6b7.tar.gz
samba-afe88facbfb85113105bf516e066b6c1e971f6b7.tar.xz
samba-afe88facbfb85113105bf516e066b6c1e971f6b7.zip
I'm slowly getting though the todo list :-)
This change allows people to select the SYSLOG_FACILITY in local.h, or add it to the Makefile if they want to.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index f5cae86430a..18f1240bbdd 100644
--- a/source/lib/util.c
+++ b/source/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) {