Added parsing for pidlogname option in fspd.conf

This commit is contained in:
hoaxter 2004-09-01 19:10:48 +00:00
parent 82f16bc0cb
commit eb9292cf6f

View File

@ -52,6 +52,7 @@ time_t session_timeout = 60;
time_t stat_cache_timeout = 25;
char *logname = NULL;
char *tlogname = NULL;
char *pidlogname = NULL;
char *dumpname = NULL;
char *home_dir = NULL;
char *tmp_dir = NULL;
@ -143,6 +144,9 @@ static void read_configuration PROTO1(const char *, name)
} else if(strcasecmp(p, "xferlog") == 0) {
if(tlogname) free(tlogname);
tlogname = strdup(q);
} else if(strcasecmp(p, "pidlogname") == 0) {
if(pidlogname) free(pidlogname);
pidlogname = strdup(q);
} else if(strcasecmp(p, "dumpfile") == 0) {
if(dumpname) free(dumpname);
dumpname = strdup(q);
@ -279,10 +283,11 @@ void destroy_configuration PROTO0((void))
if(home_dir) free(home_dir);
if(logname) free(logname);
if(tlogname) free(tlogname);
if(pidlogname) free(pidlogname);
if(tmp_dir) free(tmp_dir);
if(dumpname) free(dumpname);
if(iptab) free_ip_table(iptab);
readme_file = home_dir = logname = tmp_dir = dumpname = NULL;
iptab = NULL;
iptab = pidlogname = NULL;
}