lib/util/charset use get_dyn_CODEPAGEDIR(), which is in common
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Feb 2011 05:44:41 +0000 (16:44 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 18 Feb 2011 04:09:47 +0000 (15:09 +1100)
This is provided by the s3 and s4 dynconfig implementations.

Andrew Bartlett

lib/util/charset/codepoints.c

index 5e0293569450ba13bae2896b3e5cf261a3b89e8f..5dc76143e2f18d570c711acf80eb76dd7f6189d8 100644 (file)
@@ -44,8 +44,8 @@ void load_case_tables(void)
        if (!mem_ctx) {
                smb_panic("No memory for case_tables");
        }
-       upcase_table = map_file(talloc_asprintf(mem_ctx, "%s/upcase.dat", dyn_CODEPAGEDIR), 0x20000);
-       lowcase_table = map_file(talloc_asprintf(mem_ctx, "%s/lowcase.dat", dyn_CODEPAGEDIR), 0x20000);
+       upcase_table = map_file(talloc_asprintf(mem_ctx, "%s/upcase.dat", get_dyn_CODEPAGEDIR()), 0x20000);
+       lowcase_table = map_file(talloc_asprintf(mem_ctx, "%s/lowcase.dat", get_dyn_CODEPAGEDIR()), 0x20000);
        talloc_free(mem_ctx);
        if (upcase_table == NULL) {
                upcase_table = (void *)-1;