From 9ed10f83d76eba1c4d4ac19842314f24db1c7a65 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 20 Dec 2001 22:27:05 +0000 Subject: Removed global debugf. Replaced with lp_set_logfile(name). Fixed winbindd to finally stop leaving log. file droppings :-). Jeremy. (This used to be commit 0bea6cf79a44f79fa3a4f2c8381e898e79c66509) --- source3/param/loadparm.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/param') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index f88361f7ab..335995b0dd 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -3881,4 +3881,13 @@ BOOL is_netbios_alias_or_name(char *name) return False; } +/*********************************************************** + Allow daemons such as winbindd to fix their logfile name. +************************************************************/ +void lp_set_logfile(const char *name) +{ + extern pstring debugf; + pstrcpy(Globals.szLogFile, name); + pstrcpy(debugf, name); +} -- cgit