summaryrefslogtreecommitdiff
path: root/source/nsswitch/winbindd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2004-09-21 09:07:42 +0000
committerVolker Lendecke <vlendec@samba.org>2004-09-21 09:07:42 +0000
commitc87cb3c673e9820b83a778e31ceef5466095e061 (patch)
treed7ec72ed3ff93f6f82f0b6e1a206bea68b9b401e /source/nsswitch/winbindd.c
parent0fe438a144b2d1707b9294fa5621729c774c3570 (diff)
downloadsamba-c87cb3c673e9820b83a778e31ceef5466095e061.tar.gz
r2470: Fix bug 1797: winbind and nmbd ignored "-l" option.
Thanks to Igor Zhbanov bsg@uniyar.ac.ru. Volker
Diffstat (limited to 'source/nsswitch/winbindd.c')
-rw-r--r--source/nsswitch/winbindd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd.c b/source/nsswitch/winbindd.c
index 78e71b11864..455fb74f171 100644
--- a/source/nsswitch/winbindd.c
+++ b/source/nsswitch/winbindd.c
@@ -28,6 +28,8 @@
BOOL opt_nocache = False;
BOOL opt_dual_daemon = True;
+extern BOOL override_logfile;
+
/* Reload configuration */
static BOOL reload_services_file(void)
@@ -853,8 +855,10 @@ int main(int argc, char **argv)
exit(1);
}
- pstr_sprintf(logfile, "%s/log.winbindd", dyn_LOGFILEBASE);
- lp_set_logfile(logfile);
+ if (!override_logfile) {
+ pstr_sprintf(logfile, "%s/log.winbindd", dyn_LOGFILEBASE);
+ lp_set_logfile(logfile);
+ }
setup_logging("winbindd", log_stdout);
reopen_logs();