diff options
author | Tim Potter <tpot@samba.org> | 2001-12-21 02:23:38 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-12-21 02:23:38 +0000 |
commit | 54d276561524213302e7bb2d759d7d4082fd6e8a (patch) | |
tree | fae096c249a25ae306bf4c91d8a66c13db87e79b | |
parent | 60d1d0bfa93bfb8264b117147b651b521dbf28ce (diff) | |
download | samba-54d276561524213302e7bb2d759d7d4082fd6e8a.tar.gz samba-54d276561524213302e7bb2d759d7d4082fd6e8a.tar.xz samba-54d276561524213302e7bb2d759d7d4082fd6e8a.zip |
Append to log.winbindd instead of overwriting it so we are consistent with
smbd/nmbd behaviour.
-rw-r--r-- | source/nsswitch/winbindd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd.c b/source/nsswitch/winbindd.c index e68708469c8..9bbd88653c3 100644 --- a/source/nsswitch/winbindd.c +++ b/source/nsswitch/winbindd.c @@ -730,6 +730,7 @@ int main(int argc, char **argv) { extern pstring global_myname; extern fstring global_myworkgroup; + extern BOOL append_log; pstring logfile; int accept_sock; BOOL interactive = False; @@ -741,6 +742,12 @@ int main(int argc, char **argv) CatchSignal(SIGUSR1, SIG_IGN); fault_setup((void (*)(void *))fault_quit ); + + /* Append to log file by default as we are a single process daemon + program. */ + + append_log = True; + snprintf(logfile, sizeof(logfile), "%s/log.winbindd", dyn_LOGFILEBASE); lp_set_logfile(logfile); |