mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r12555: Fix more load_case_table swegfaults. Arggg.
What I'd give for a global constructor... Jeremy.
This commit is contained in:
parent
9ca8edc26e
commit
c970d7d0a5
@ -3326,6 +3326,7 @@ static int do_message_op(void)
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
|
||||
#ifdef KANJI
|
||||
pstrcpy(term_code, KANJI);
|
||||
|
@ -1022,6 +1022,7 @@ int main(int argc, char **argv)
|
||||
};
|
||||
|
||||
/* Samba client initialisation */
|
||||
load_case_tables();
|
||||
|
||||
if (!lp_load(dyn_CONFIGFILE, True, False, False)) {
|
||||
d_fprintf(stderr, "wbinfo: error opening config file %s. Error was %s\n",
|
||||
|
@ -166,6 +166,8 @@ int main( int argc, char *argv[] )
|
||||
|
||||
fstring opname;
|
||||
|
||||
load_case_tables();
|
||||
|
||||
opt_debug = 0; /* todo set this from getopts */
|
||||
|
||||
lp_load( dyn_CONFIGFILE, True, False, False );
|
||||
|
@ -1752,6 +1752,7 @@ enum {
|
||||
};
|
||||
|
||||
/* Samba client initialisation */
|
||||
load_case_tables();
|
||||
|
||||
dbf = x_stderr;
|
||||
|
||||
|
@ -775,6 +775,8 @@ int main (int argc, char **argv)
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
|
||||
setup_logging("pdbedit", True);
|
||||
|
||||
pc = poptGetContext(NULL, argc, (const char **) argv, long_options,
|
||||
|
@ -818,6 +818,8 @@ static struct cli_state *connect_one(const char *share)
|
||||
|
||||
struct cli_state *cli;
|
||||
|
||||
load_case_tables();
|
||||
|
||||
ctx=talloc_init("main");
|
||||
|
||||
/* set default debug level to 1 regardless of what smb.conf sets */
|
||||
|
@ -421,6 +421,8 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
|
||||
ZERO_STRUCT(qt);
|
||||
|
||||
/* set default debug level to 1 regardless of what smb.conf sets */
|
||||
|
@ -544,6 +544,8 @@ int main(int argc, const char **argv)
|
||||
};
|
||||
poptContext pc;
|
||||
|
||||
load_case_tables();
|
||||
|
||||
/* only read rcfile if it exists */
|
||||
asprintf(&rcfile, "%s/.smbgetrc", getenv("HOME"));
|
||||
if(access(rcfile, F_OK) == 0)
|
||||
|
@ -203,6 +203,7 @@ static BOOL print_tree(struct user_auth_info *user_info)
|
||||
poptContext pc;
|
||||
|
||||
/* Initialise samba stuff */
|
||||
load_case_tables();
|
||||
|
||||
setlinebuf(stdout);
|
||||
|
||||
|
@ -613,6 +613,8 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
|
||||
setup_logging(argv[0],True);
|
||||
|
||||
dbf = x_stderr;
|
||||
|
@ -230,6 +230,8 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
|
||||
pc = poptGetContext(NULL, argc, argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
poptSetOtherOptionHelp(pc, "[OPTION...] <config-file> [host-name] [host-ip]");
|
||||
|
Loading…
Reference in New Issue
Block a user