diff options
author | Günther Deschner <gdeschner@redhat.com> | 2013-06-04 14:33:31 +0200 |
---|---|---|
committer | Günther Deschner <gdeschner@redhat.com> | 2013-06-06 16:52:11 +0200 |
commit | 38f048d6450096859df0d5d0cb65d4ec12eb1ef5 (patch) | |
tree | af3c24d23f4c2aace9b5861682ddf684b87eefaf | |
parent | 88a3f308ab8008f49ec8a517d771f9c9ab49800d (diff) | |
download | gss-proxy-master-fixes2.tar.gz gss-proxy-master-fixes2.tar.xz gss-proxy-master-fixes2.zip |
gssproxy: Call gp_logging_init() before load_config().master-fixes2
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 92c0a47..d6e88f2 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); |