From 563b837b76e3a6086051fc56e0522b841939d37f Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 12 Apr 2008 02:05:25 +0200 Subject: [PATCH] libnetapi: fix interactive logging by preventing setup_logging from closing stderr. Michael --- source/lib/netapi/netapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/lib/netapi/netapi.c b/source/lib/netapi/netapi.c index 2478a8dda11..cb218f0ced7 100644 --- a/source/lib/netapi/netapi.c +++ b/source/lib/netapi/netapi.c @@ -54,6 +54,9 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context) if (!DEBUGLEVEL) { DEBUGLEVEL = 0; } + + /* prevent setup_logging() from closing x_stderr... */ + dbf = 0; setup_logging("libnetapi", true); dbf = x_stderr; -- 2.11.4.GIT