• SUN's avatar
    chdir to dir before fopen logfile in loadServerConfigFromString() (#6741) · 4c52aa9f
    SUN authored
    Open the log file only after parsing the entire config file, so that it's
    location isn't dependent on the order of configs (`dir` and `logfile`).
    Also solves the problem of creating multiple log files if the `logfile`
    directive appears many times in the config file.
    4c52aa9f
config.c 111 KB