summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>2001-01-08 02:47:30 +0000
committerRichard Sharpe <sharpe@samba.org>2001-01-08 02:47:30 +0000
commit8788aea643453a8d18563629220e7edd53babf41 (patch)
tree116395055d1475bd57f785766da24bae04255071 /source3/libsmb
parent6b51372c2e6cc0e7eba36c677d92c6617c67ef72 (diff)
downloadsamba-8788aea643453a8d18563629220e7edd53babf41.tar.gz
samba-8788aea643453a8d18563629220e7edd53babf41.tar.bz2
samba-8788aea643453a8d18563629220e7edd53babf41.zip
Add support for logging to wherever smb.conf specifies.
(This used to be commit cc5a2db8a0c195b328b93fff566bc1120aeef54a)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/libsmbclient.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c
index 2cbc66986e..3c1c343ec2 100644
--- a/source3/libsmb/libsmbclient.c
+++ b/source3/libsmb/libsmbclient.c
@@ -428,12 +428,16 @@ int smbc_init(smbc_get_auth_data_fn fn, const char *wgroup, int debug)
static pstring workgroup;
pstring conf;
int p, pid;
- char *user = NULL, *host = NULL, *home = NULL;
+ char *user = NULL, *host = NULL, *home = NULL, *pname="libsmbclient";
smbc_initialized = 1;
smbc_auth_fn = fn;
smbc_debug = debug;
+ DEBUGLEVEL = -1;
+
+ setup_logging(pname, False);
+
/*
* We try to construct our netbios name from our hostname etc
*/
@@ -458,7 +462,7 @@ int smbc_init(smbc_get_auth_data_fn fn, const char *wgroup, int debug)
slprintf(conf, sizeof(conf), "%s/.smb/smb.conf", home);
- load_interfaces(); /* Load the list of interfaces ... */
+ load_interfaces(); /* Load the list of interfaces ... */
in_client = True; /* FIXME, make a param */
@@ -477,6 +481,8 @@ int smbc_init(smbc_get_auth_data_fn fn, const char *wgroup, int debug)
}
+ reopen_logs(); /* Get logging working ... */
+
/*
* Now initialize the file descriptor array and figure out what the
* max open files is, so we can return FD's that are above the max