Ignore:
Timestamp:
Sep 30, 2008, 7:14:08 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.32

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/nsswitch/winbindd.c

    r140 r158  
    4747/* Reload configuration */
    4848
    49 static BOOL reload_services_file(void)
     49static BOOL reload_services_file(const char *logfile)
    5050{
    5151        BOOL ret;
     
    6262        reopen_logs();
    6363        ret = lp_load(dyn_CONFIGFILE,False,False,True,True);
     64
     65        /* if this is a child, restore the logfile to the special
     66           name - <domain>, idmap, etc. */
     67        if (logfile && *logfile)
     68                lp_set_logfile(logfile);
    6469
    6570        reopen_logs();
     
    189194        /* Flush various caches */
    190195        flush_caches();
    191         reload_services_file();
     196        reload_services_file((const char *) private_data);
    192197}
    193198
     
    727732
    728733/* check if HUP has been received and reload files */
    729 void winbind_check_sighup(void)
     734void winbind_check_sighup(const char *logfile)
    730735{
    731736        if (do_sighup) {
     
    733738                DEBUG(3, ("got SIGHUP\n"));
    734739
    735                 msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, NULL);
     740                msg_reload_services(MSG_SMB_CONF_UPDATED, pid_to_procid(0), NULL, 0, logfile);
    736741                do_sighup = False;
    737742        }
     
    910915
    911916        winbind_check_sigterm(true);
    912         winbind_check_sighup();
     917        winbind_check_sighup(NULL);
    913918
    914919        if (do_sigusr2) {
     
    10081013                  COPYRIGHT_STARTUP_MESSAGE) );
    10091014
    1010         if (!reload_services_file()) {
     1015        if (!reload_services_file(NULL)) {
    10111016                DEBUG(0, ("error opening config file\n"));
    10121017                exit(1);
Note: See TracChangeset for help on using the changeset viewer.