From 2b34d862111f1fd84cdb9d744ac34c1c933f34da Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Mon, 27 Dec 2010 15:25:38 +0300 Subject: implemented partial config reload via SIGUSR1 signal or cli --- accel-pptpd/logs/log_file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'accel-pptpd/logs/log_file.c') diff --git a/accel-pptpd/logs/log_file.c b/accel-pptpd/logs/log_file.c index c559d4d4..08a60537 100644 --- a/accel-pptpd/logs/log_file.c +++ b/accel-pptpd/logs/log_file.c @@ -583,11 +583,11 @@ static void __init init(void) opt = conf_get_opt("log", "per-user-dir"); if (opt) - conf_per_user_dir = opt; + conf_per_user_dir = _strdup(opt); opt = conf_get_opt("log", "per-session-dir"); if (opt) - conf_per_session_dir = opt; + conf_per_session_dir = _strdup(opt); opt = conf_get_opt("log", "per-session"); if (opt && atoi(opt) > 0) @@ -610,4 +610,3 @@ static void __init init(void) triton_event_register_handler(EV_PPP_STARTING, (triton_event_func)ev_ppp_starting); triton_event_register_handler(EV_PPP_AUTHORIZED, (triton_event_func)ev_ppp_authorized); } - -- cgit v1.2.3