mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +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
|
POPT_TABLEEND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
#ifdef KANJI
|
#ifdef KANJI
|
||||||
pstrcpy(term_code, KANJI);
|
pstrcpy(term_code, KANJI);
|
||||||
|
@ -1022,6 +1022,7 @@ int main(int argc, char **argv)
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Samba client initialisation */
|
/* Samba client initialisation */
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
if (!lp_load(dyn_CONFIGFILE, True, False, False)) {
|
if (!lp_load(dyn_CONFIGFILE, True, False, False)) {
|
||||||
d_fprintf(stderr, "wbinfo: error opening config file %s. Error was %s\n",
|
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;
|
fstring opname;
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
opt_debug = 0; /* todo set this from getopts */
|
opt_debug = 0; /* todo set this from getopts */
|
||||||
|
|
||||||
lp_load( dyn_CONFIGFILE, True, False, False );
|
lp_load( dyn_CONFIGFILE, True, False, False );
|
||||||
|
@ -1752,6 +1752,7 @@ enum {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Samba client initialisation */
|
/* Samba client initialisation */
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
dbf = x_stderr;
|
dbf = x_stderr;
|
||||||
|
|
||||||
|
@ -775,6 +775,8 @@ int main (int argc, char **argv)
|
|||||||
POPT_TABLEEND
|
POPT_TABLEEND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
setup_logging("pdbedit", True);
|
setup_logging("pdbedit", True);
|
||||||
|
|
||||||
pc = poptGetContext(NULL, argc, (const char **) argv, long_options,
|
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;
|
struct cli_state *cli;
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
ctx=talloc_init("main");
|
ctx=talloc_init("main");
|
||||||
|
|
||||||
/* set default debug level to 1 regardless of what smb.conf sets */
|
/* 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 }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
ZERO_STRUCT(qt);
|
ZERO_STRUCT(qt);
|
||||||
|
|
||||||
/* set default debug level to 1 regardless of what smb.conf sets */
|
/* 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;
|
poptContext pc;
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
/* only read rcfile if it exists */
|
/* only read rcfile if it exists */
|
||||||
asprintf(&rcfile, "%s/.smbgetrc", getenv("HOME"));
|
asprintf(&rcfile, "%s/.smbgetrc", getenv("HOME"));
|
||||||
if(access(rcfile, F_OK) == 0)
|
if(access(rcfile, F_OK) == 0)
|
||||||
|
@ -203,6 +203,7 @@ static BOOL print_tree(struct user_auth_info *user_info)
|
|||||||
poptContext pc;
|
poptContext pc;
|
||||||
|
|
||||||
/* Initialise samba stuff */
|
/* Initialise samba stuff */
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
setlinebuf(stdout);
|
setlinebuf(stdout);
|
||||||
|
|
||||||
|
@ -613,6 +613,8 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
|
|||||||
POPT_TABLEEND
|
POPT_TABLEEND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
setup_logging(argv[0],True);
|
setup_logging(argv[0],True);
|
||||||
|
|
||||||
dbf = x_stderr;
|
dbf = x_stderr;
|
||||||
|
@ -230,6 +230,8 @@ via the %%o substitution. With encrypted passwords this is not possible.\n", lp_
|
|||||||
POPT_TABLEEND
|
POPT_TABLEEND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
load_case_tables();
|
||||||
|
|
||||||
pc = poptGetContext(NULL, argc, argv, long_options,
|
pc = poptGetContext(NULL, argc, argv, long_options,
|
||||||
POPT_CONTEXT_KEEP_FIRST);
|
POPT_CONTEXT_KEEP_FIRST);
|
||||||
poptSetOtherOptionHelp(pc, "[OPTION...] <config-file> [host-name] [host-ip]");
|
poptSetOtherOptionHelp(pc, "[OPTION...] <config-file> [host-name] [host-ip]");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user