summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-12-21 02:23:38 +0000
committerTim Potter <tpot@samba.org>2001-12-21 02:23:38 +0000
commit2bfeee924cbe86a97cc70064be920af4e2776432 (patch)
tree48be90fcc7511a3bddc72f7227c735563b84ae64 /source3/nsswitch
parent203c2301ebd30761e5d5cf7c0b02ac68ef20a9b4 (diff)
downloadsamba-2bfeee924cbe86a97cc70064be920af4e2776432.tar.gz
samba-2bfeee924cbe86a97cc70064be920af4e2776432.tar.bz2
samba-2bfeee924cbe86a97cc70064be920af4e2776432.zip
Append to log.winbindd instead of overwriting it so we are consistent with
smbd/nmbd behaviour. (This used to be commit 54d276561524213302e7bb2d759d7d4082fd6e8a)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd.c7
1 files changed, 7 insertions, 0 deletions
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);