1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-29 15:42:04 +03:00

libnetapi: fix interactive logging by preventing setup_logging from closing stderr.

Michael
(This used to be commit 563b837b76)
This commit is contained in:
Michael Adam
2008-04-12 02:05:25 +02:00
parent 8be49cdd3e
commit ecd46b8ad4

View File

@ -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;