1
0
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:
Volker Lendecke 2015-03-21 20:00:06 +01:00 committed by Jeremy Allison
parent 06a727e8f8
commit c51300ad89
37 changed files with 37 additions and 37 deletions

View File

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

View File

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

View File

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

View File

@ -2224,7 +2224,7 @@ int main(int argc, const char **argv, char **envp)
};
/* Samba client initialisation */
load_case_tables();
smb_init_locale();
/* Parse options */

View File

@ -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");

View File

@ -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());

View File

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

View File

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

View File

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

View File

@ -932,7 +932,7 @@ out_free:
POPT_TABLEEND
};
load_case_tables();
smb_init_locale();
zero_sockaddr(&server_ss);

View File

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

View File

@ -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();

View File

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

View File

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

View File

@ -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()) {

View File

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

View File

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

View File

@ -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");

View File

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

View File

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

View File

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

View File

@ -2770,7 +2770,7 @@ enum {
};
/* Samba client initialisation */
load_case_tables();
smb_init_locale();
setup_logging("ntlm_auth", DEBUG_STDERR);

View File

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

View File

@ -219,7 +219,7 @@ int main( int argc, const char *argv[] )
};
poptContext pc;
load_case_tables();
smb_init_locale();
/* setup logging options */

View File

@ -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");

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -302,7 +302,7 @@ int main(int argc, char *argv[])
poptContext pc;
/* Initialise samba stuff */
load_case_tables();
smb_init_locale();
setlinebuf(stdout);

View File

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

View File

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

View File

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

View File

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