diff options
author | Michael Adam <obnox@samba.org> | 2008-04-12 02:05:25 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-04-12 02:05:25 +0200 |
commit | ecd46b8ad4e77bbfd6f24cecdccd4029655336b8 (patch) | |
tree | 2a7c3e39d91e5a6f002acaffd5347fa801b53f98 /source3 | |
parent | 8be49cdd3e84834bac7d9514c05b294e5403550a (diff) | |
download | samba-ecd46b8ad4e77bbfd6f24cecdccd4029655336b8.tar.gz samba-ecd46b8ad4e77bbfd6f24cecdccd4029655336b8.tar.bz2 samba-ecd46b8ad4e77bbfd6f24cecdccd4029655336b8.zip |
libnetapi: fix interactive logging by preventing setup_logging from closing stderr.
Michael
(This used to be commit 563b837b76e3a6086051fc56e0522b841939d37f)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/netapi/netapi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 2478a8dda1..cb218f0ced 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/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; |