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
*/
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 */
}
+ 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