From 20e5177245bf717cc04d3aeb9ca383f03c6db8fc Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 4 Jun 2013 14:33:31 +0200 Subject: gssproxy: Call gp_logging_init() before load_config(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes sure openlog() is called before any syslog() call. Signed-off-by: Günther Deschner --- proxy/src/gp_init.c | 2 -- proxy/src/gssproxy.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'proxy') diff --git a/proxy/src/gp_init.c b/proxy/src/gp_init.c index 7e29c59..f81a53a 100644 --- a/proxy/src/gp_init.c +++ b/proxy/src/gp_init.c @@ -72,8 +72,6 @@ void init_server(bool daemonize) /* Set env var to avoid looping to ourselves in GSSAPI */ setenv("GSS_USE_PROXY", "NO", 1); - - gp_logging_init(); } void fini_server(void) diff --git a/proxy/src/gssproxy.c b/proxy/src/gssproxy.c index 1fca922..c21be7b 100644 --- a/proxy/src/gssproxy.c +++ b/proxy/src/gssproxy.c @@ -90,6 +90,8 @@ int main(int argc, const char *argv[]) opt_daemon = 2; } + gp_logging_init(); + gpctx = calloc(1, sizeof(struct gssproxy_ctx)); gpctx->config = read_config(opt_config_file, opt_daemon); -- cgit