1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

Add support for logging to wherever smb.conf specifies.

(This used to be commit cc5a2db8a0c195b328b93fff566bc1120aeef54a)
This commit is contained in:
Richard Sharpe 2001-01-08 02:47:30 +00:00
parent 6b51372c2e
commit 8788aea643

View File

@ -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