diff options
author | Günther Deschner <gdeschner@redhat.com> | 2013-06-04 14:33:31 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2014-01-14 14:33:34 +0100 |
commit | 20e5177245bf717cc04d3aeb9ca383f03c6db8fc (patch) | |
tree | 66cdfb9ada0c87dac23c8834f760bbaea8f7d8c7 | |
parent | bd1ff1bc98012e312a493efc7cf32cc128e92050 (diff) | |
download | gss-proxy-master-erroroutput.tar.gz gss-proxy-master-erroroutput.tar.xz gss-proxy-master-erroroutput.zip |
gssproxy: Call gp_logging_init() before load_config().master-erroroutput
This makes sure openlog() is called before any syslog() call.
Signed-off-by: Günther Deschner <gdeschner@redhat.com>
-rw-r--r-- | proxy/src/gp_init.c | 2 | ||||
-rw-r--r-- | proxy/src/gssproxy.c | 2 |
2 files changed, 2 insertions, 2 deletions
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); |