mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
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. (This used to be commit afe88facbfb85113105bf516e066b6c1e971f6b7)
This commit is contained in:
parent
bd1abc6927
commit
cc12fc66d1
@ -25,6 +25,11 @@
|
||||
*/
|
||||
#define PRINTCAP_NAME "/etc/printcap"
|
||||
|
||||
/* define what facility to use for syslog */
|
||||
#ifndef SYSLOG_FACILITY
|
||||
#define SYSLOG_FACILITY LOG_DAEMON
|
||||
#endif
|
||||
|
||||
/* set these to define the limits of the server. NOTE These are on a
|
||||
per-client basis. Thus any one machine can't connect to more than
|
||||
MAX_CONNECTIONS services, but any number of machines may connect at
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user