From 2bfeee924cbe86a97cc70064be920af4e2776432 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 21 Dec 2001 02:23:38 +0000 Subject: Append to log.winbindd instead of overwriting it so we are consistent with smbd/nmbd behaviour. (This used to be commit 54d276561524213302e7bb2d759d7d4082fd6e8a) --- source3/nsswitch/winbindd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3/nsswitch/winbindd.c') diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c index e68708469c..9bbd88653c 100644 --- a/source3/nsswitch/winbindd.c +++ b/source3/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); -- cgit