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

r12544: Fix segfaults in winbind, smbpasswd and net

(This used to be commit 9ca8edc26e66887d6333943bc6a9776352c657fc)
This commit is contained in:
Volker Lendecke 2005-12-28 21:10:11 +00:00 committed by Gerald (Jerry) Carter
parent 1d5add005d
commit 608aa3f41e
3 changed files with 6 additions and 0 deletions

View File

@ -932,6 +932,8 @@ int main(int argc, char **argv)
fault_setup((void (*)(void *))fault_quit );
load_case_tables();
/* Initialise for running in non-root mode */
sec_init();

View File

@ -781,6 +781,8 @@ static struct functable net_func[] = {
zero_ip(&opt_dest_ip);
load_case_tables();
/* set default debug level to 0 regardless of what smb.conf sets */
DEBUGLEVEL_CLASS[DBGC_ALL] = 0;
dbf = x_stderr;

View File

@ -569,6 +569,8 @@ int main(int argc, char **argv)
local_flags = LOCAL_AM_ROOT;
}
load_case_tables();
local_flags = process_options(argc, argv, local_flags);
setup_logging("smbpasswd", True);