summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-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