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:
@ -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;
|
||||
|
Reference in New Issue
Block a user