From eb9292cf6f2c9c58a36e6453676b6b6b2a315e68 Mon Sep 17 00:00:00 2001 From: hoaxter <> Date: Wed, 1 Sep 2004 19:10:48 +0000 Subject: [PATCH] Added parsing for pidlogname option in fspd.conf --- server/conf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/conf.c b/server/conf.c index 1472a82..5399991 100644 --- a/server/conf.c +++ b/server/conf.c @@ -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; }