From: Michael Adam Date: Sat, 12 Apr 2008 00:05:25 +0000 (+0200) Subject: libnetapi: fix interactive logging by preventing setup_logging from closing stderr. X-Git-Tag: samba-3.3.0pre1~2738^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=563b837b76e3a6086051fc56e0522b841939d37f;p=thirdparty%2Fsamba.git libnetapi: fix interactive logging by preventing setup_logging from closing stderr. Michael --- 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;