mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
lib: load_case_tables() -> smb_init_locale()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
06a727e8f8
commit
c51300ad89
@ -222,7 +222,7 @@ size_t smb_iconv(smb_iconv_t cd,
|
||||
smb_iconv_t smb_iconv_open_ex(TALLOC_CTX *mem_ctx, const char *tocode,
|
||||
const char *fromcode, bool use_builtin_handlers);
|
||||
|
||||
void load_case_tables(void);
|
||||
void smb_init_locale(void);
|
||||
|
||||
/* The following definitions come from util_unistr_w.c */
|
||||
|
||||
|
@ -16424,7 +16424,7 @@ static const uint16_t upcase_table[] = {
|
||||
0xfff8,0xfff9,0xfffa,0xfffb,0xfffc,0xfffd,0xfffe,0xffff
|
||||
};
|
||||
|
||||
void load_case_tables(void)
|
||||
void smb_init_locale(void)
|
||||
{
|
||||
/* This is a useful global hook where we can ensure that the
|
||||
* locale is set from the environment. This is needed so that
|
||||
|
@ -227,7 +227,7 @@ static NTSTATUS ndrdump_pull_and_print_pipes(const char *function,
|
||||
ndr_table_init();
|
||||
|
||||
/* Initialise samba stuff */
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setlinebuf(stdout);
|
||||
|
||||
|
@ -2224,7 +2224,7 @@ int main(int argc, const char **argv, char **envp)
|
||||
};
|
||||
|
||||
/* Samba client initialisation */
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
|
||||
/* Parse options */
|
||||
|
@ -5428,7 +5428,7 @@ int main(int argc,char *argv[])
|
||||
|
||||
/* set default debug level to 1 regardless of what smb.conf sets */
|
||||
setup_logging( "smbclient", DEBUG_DEFAULT_STDERR );
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
lp_set_cmdline("log level", "1");
|
||||
|
||||
|
@ -252,7 +252,7 @@ main(int argc, /* I - Number of command-line arguments */
|
||||
|
||||
setup_logging("smbspool", DEBUG_STDOUT);
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
if (!lp_load_client(get_dyn_CONFIGFILE())) {
|
||||
fprintf(stderr, "ERROR: Can't load %s - run testparm to debug it\n", get_dyn_CONFIGFILE());
|
||||
|
@ -296,7 +296,7 @@ int main(int argc, const char **argv)
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
setup_logging(argv[0], DEBUG_STDERR);
|
||||
|
||||
/* parse options */
|
||||
|
@ -819,7 +819,7 @@ static bool open_sockets(bool isdaemon, int port)
|
||||
|
||||
setup_logging(argv[0], DEBUG_DEFAULT_STDOUT);
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
global_nmb_port = NMB_PORT;
|
||||
|
||||
|
@ -38,7 +38,7 @@ int main(int argc, const char **argv)
|
||||
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
lp_set_cmdline("log level", "0");
|
||||
|
||||
pc = poptGetContext(NULL, argc, argv, long_options,
|
||||
|
@ -932,7 +932,7 @@ out_free:
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
zero_sockaddr(&server_ss);
|
||||
|
||||
|
@ -1124,7 +1124,7 @@ extern void build_options(bool screen);
|
||||
|
||||
setup_logging(argv[0], DEBUG_DEFAULT_STDOUT);
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
set_smbd_shim(&smbd_shim_fns);
|
||||
|
||||
|
@ -482,7 +482,7 @@ static void usage(void)
|
||||
argc -= 1;
|
||||
argv += 1;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
lp_load_global(get_dyn_CONFIGFILE());
|
||||
load_interfaces();
|
||||
|
||||
|
@ -48,7 +48,7 @@ static void pong_message(struct messaging_context *msg_ctx,
|
||||
int ret;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging(argv[0], DEBUG_STDOUT);
|
||||
|
||||
|
@ -459,7 +459,7 @@ int main(int argc, const char **argv)
|
||||
|
||||
ctx = talloc_stackframe();
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
pc = poptGetContext("pdbtest", argc, argv, long_options, 0);
|
||||
|
||||
|
@ -9749,7 +9749,7 @@ static void usage(void)
|
||||
|
||||
setup_logging("smbtorture", DEBUG_STDOUT);
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
fault_setup();
|
||||
|
||||
if (is_default_dyn_CONFIGFILE()) {
|
||||
|
@ -487,7 +487,7 @@ int main(int argc, const char *argv[])
|
||||
.exit_server_cleanly = vfstest_exit_server_cleanly,
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setlinebuf(stdout);
|
||||
|
||||
|
@ -435,7 +435,7 @@ int main(int argc, const char **argv)
|
||||
int extra_argc = 0;
|
||||
poptContext pc;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
lp_set_cmdline("log level", "0");
|
||||
setup_logging(argv[0], DEBUG_STDERR);
|
||||
|
||||
|
@ -261,7 +261,7 @@ int main(int argc, const char *argv[])
|
||||
setlinebuf(stdout);
|
||||
}
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging(argv[0], DEBUG_STDERR);
|
||||
lp_set_cmdline("log level", "0");
|
||||
|
@ -427,7 +427,7 @@ int main( int argc, char *argv[] )
|
||||
|
||||
fstring opname;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
opt_debug = 0; /* todo set this from getopts */
|
||||
|
||||
|
@ -839,7 +839,7 @@ static struct functable net_func[] = {
|
||||
|
||||
setup_logging(argv[0], DEBUG_STDERR);
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
#if defined(HAVE_BINDTEXTDOMAIN)
|
||||
|
@ -247,7 +247,7 @@ int main(int argc, const char *argv[])
|
||||
|
||||
*lookup = 0;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging(argv[0], DEBUG_STDOUT);
|
||||
|
||||
|
@ -2770,7 +2770,7 @@ enum {
|
||||
};
|
||||
|
||||
/* Samba client initialisation */
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging("ntlm_auth", DEBUG_STDERR);
|
||||
|
||||
|
@ -1064,7 +1064,7 @@ int main(int argc, const char **argv)
|
||||
|
||||
bin = bout = NULL;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging("pdbedit", DEBUG_STDOUT);
|
||||
|
||||
|
@ -219,7 +219,7 @@ int main( int argc, const char *argv[] )
|
||||
};
|
||||
poptContext pc;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
/* setup logging options */
|
||||
|
||||
|
@ -537,7 +537,7 @@ int main(int argc, const char *argv[])
|
||||
/* set default debug level to 1 regardless of what smb.conf sets */
|
||||
setup_logging( "sharesec", DEBUG_STDERR);
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
lp_set_cmdline("log level", "1");
|
||||
|
||||
|
@ -1400,7 +1400,7 @@ int main(int argc, char *argv[])
|
||||
char *server;
|
||||
struct user_auth_info *auth_info;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
/* set default debug level to 1 regardless of what smb.conf sets */
|
||||
setup_logging( "smbcacls", DEBUG_STDERR);
|
||||
|
@ -1550,7 +1550,7 @@ int main(int argc, const char **argv)
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
int ret = 0;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging(argv[0], DEBUG_STDOUT);
|
||||
|
||||
|
@ -589,7 +589,7 @@ FSQFLAGS:QUOTA_ENABLED/DENY_DISK/LOG_SOFTLIMIT/LOG_HARD_LIMIT", "SETSTRING" },
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
ZERO_STRUCT(qt);
|
||||
|
||||
|
@ -323,7 +323,7 @@ int main(int argc, char *argv[])
|
||||
const char *configfile;
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging(argv[0], DEBUG_STDOUT);
|
||||
|
||||
|
@ -619,7 +619,7 @@ int main(int argc, const char **argv)
|
||||
};
|
||||
poptContext pc;
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
/* only read rcfile if it exists */
|
||||
if (asprintf(&rcfile, "%s/.smbgetrc", getenv("HOME")) == -1) {
|
||||
|
@ -597,7 +597,7 @@ int main(int argc, char **argv)
|
||||
local_flags = LOCAL_AM_ROOT;
|
||||
}
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
local_flags = process_options(argc, argv, local_flags);
|
||||
|
||||
|
@ -193,7 +193,7 @@ static void process_arguments(int argc, char **argv)
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
sec_init();
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
if (!lp_load_initial_only(get_dyn_CONFIGFILE())) {
|
||||
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
|
||||
|
@ -302,7 +302,7 @@ int main(int argc, char *argv[])
|
||||
poptContext pc;
|
||||
|
||||
/* Initialise samba stuff */
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setlinebuf(stdout);
|
||||
|
||||
|
@ -40,7 +40,7 @@ int main(int argc, const char *argv[])
|
||||
POPT_TABLEEND
|
||||
};
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
pc = poptGetContext(NULL, argc, argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
|
@ -376,7 +376,7 @@ int main(int argc, const char *argv[])
|
||||
bool ok;
|
||||
|
||||
sec_init();
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
setup_logging(argv[0], DEBUG_STDERR);
|
||||
|
||||
|
@ -454,7 +454,7 @@ static void do_per_share_checks(int s)
|
||||
|
||||
TALLOC_CTX *frame = talloc_stackframe();
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
/*
|
||||
* Set the default debug level to 2.
|
||||
* Allow it to be overridden by the command line,
|
||||
|
@ -1436,7 +1436,7 @@ int main(int argc, const char **argv)
|
||||
fault_setup();
|
||||
dump_core_setup("winbindd", lp_logfile(talloc_tos()));
|
||||
|
||||
load_case_tables();
|
||||
smb_init_locale();
|
||||
|
||||
/* Initialise for running in non-root mode */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user