Ignore:
Timestamp:
Nov 12, 2012, 5:38:52 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/winbindd/winbindd.c

    r732 r736  
    6868
    6969        if (lp_loaded()) {
    70                 const char *fname = lp_configfile();
     70                char *fname = lp_configfile();
    7171
    7272                if (file_exist(fname) && !strcsequal(fname,get_dyn_CONFIGFILE())) {
    7373                        set_dyn_CONFIGFILE(fname);
    7474                }
     75                TALLOC_FREE(fname);
    7576        }
    7677
     
    10731074        }
    10741075
     1076        /* We call dump_core_setup one more time because the command line can
     1077         * set the log file or the log-basename and this will influence where
     1078         * cores are stored. Without this call get_dyn_LOGFILEBASE will be
     1079         * the default value derived from build's prefix. For EOM this value
     1080         * is often not related to the path where winbindd is actually run
     1081         * in production.
     1082         */
     1083        dump_core_setup("winbindd");
     1084
    10751085        if (is_daemon && interactive) {
    10761086                d_fprintf(stderr,"\nERROR: "
     
    11071117                exit(1);
    11081118        }
     1119        /* After parsing the configuration file we setup the core path one more time
     1120         * as the log file might have been set in the configuration and cores's
     1121         * path is by default basename(lp_logfile()).
     1122         */
     1123        dump_core_setup("winbindd");
    11091124
    11101125        /* Initialise messaging system */
Note: See TracChangeset for help on using the changeset viewer.