diff options
author | Gerald Carter <jerry@samba.org> | 2004-09-23 12:21:10 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-09-23 12:21:10 +0000 |
commit | 3cf617a8c779ef153080bd00d20bfaa349603096 (patch) | |
tree | 8950e518321f034d21006ebe087a8cd4a80d1ca8 /source/nmbd/nmbd.c | |
parent | f36cd948f0006d177ff67ab5bb2636d32493ce28 (diff) | |
download | samba-3cf617a8c779ef153080bd00d20bfaa349603096.tar.gz |
r2565: syncing up for 3.0.8pre1
Diffstat (limited to 'source/nmbd/nmbd.c')
-rw-r--r-- | source/nmbd/nmbd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/nmbd/nmbd.c b/source/nmbd/nmbd.c index 880de7f91bf..f8006a22a9e 100644 --- a/source/nmbd/nmbd.c +++ b/source/nmbd/nmbd.c @@ -29,6 +29,8 @@ int global_nmb_port = -1; extern BOOL global_in_nmbd; +extern BOOL override_logfile; + /* are we running as a daemon ? */ static BOOL is_daemon; @@ -623,8 +625,10 @@ static BOOL open_sockets(BOOL isdaemon, int port) sys_srandom(time(NULL) ^ sys_getpid()); - slprintf(logfile, sizeof(logfile)-1, "%s/log.nmbd", dyn_LOGFILEBASE); - lp_set_logfile(logfile); + if (!override_logfile) { + slprintf(logfile, sizeof(logfile)-1, "%s/log.nmbd", dyn_LOGFILEBASE); + lp_set_logfile(logfile); + } fault_setup((void (*)(void *))fault_continue ); |