Move load_case_tables() to after logging is set up. This can log
authorJames Peach <jpeach@samba.org>
Sun, 9 Dec 2007 21:22:19 +0000 (13:22 -0800)
committerJames Peach <jpeach@samba.org>
Sun, 9 Dec 2007 21:22:19 +0000 (13:22 -0800)
errors.

source/client/client.c

index 1e2f96cbf221ac6d3378008687c202c2aa6ea62f..80e906df5a4e7feb226c1d34d76ac3c22d298cfb 100644 (file)
@@ -4522,7 +4522,6 @@ static int do_message_op(void)
        if (!client_set_cur_dir("\\")) {
                exit(ENOMEM);
        }
-       load_case_tables();
 
 #ifdef KANJI
        term_code = talloc_strdup(frame,KANJI);
@@ -4546,6 +4545,8 @@ static int do_message_op(void)
                x_setbuf( dbf, NULL );
        }
 
+       load_case_tables();
+
        /* skip argv(0) */
        pc = poptGetContext("smbclient", argc, (const char **) argv, long_options, 0);
        poptSetOtherOptionHelp(pc, "service <password>");