]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: set logfile after reloading config
authorRalph Boehme <slow@samba.org>
Wed, 20 Jan 2021 11:27:23 +0000 (12:27 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Jan 2021 09:17:15 +0000 (09:17 +0000)
lp_load_global() will overwrite whatever we've set with lp_set_logfile().

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14602

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 0c4497f8c66d0ea7c68d42c19e859932ebc3e2ac)

source3/winbindd/winbindd.c

index 85b1cc6e6518fe8eac773b72224546c3df15c608..44790ea3429d96a48fd5e5ef6db359c0a8d4762b 100644 (file)
@@ -114,15 +114,15 @@ bool winbindd_reload_services_file(const char *lfile)
                TALLOC_FREE(fname);
        }
 
+       reopen_logs();
+       ret = lp_load_global(get_dyn_CONFIGFILE());
+
        /* if this is a child, restore the logfile to the special
           name - <domain>, idmap, etc. */
        if (lfile && *lfile) {
                lp_set_logfile(lfile);
        }
 
-       reopen_logs();
-       ret = lp_load_global(get_dyn_CONFIGFILE());
-
        reopen_logs();
        load_interfaces();
        winbindd_setup_max_fds();