From: Andrew Bartlett Date: Wed, 16 Feb 2011 05:44:41 +0000 (+1100) Subject: lib/util/charset use get_dyn_CODEPAGEDIR(), which is in common X-Git-Tag: tevent-0.9.11~526 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=13f287fbc2ce4d92c9c2da328250bb38e9266ad7;p=thirdparty%2Fsamba.git lib/util/charset use get_dyn_CODEPAGEDIR(), which is in common This is provided by the s3 and s4 dynconfig implementations. Andrew Bartlett --- diff --git a/lib/util/charset/codepoints.c b/lib/util/charset/codepoints.c index 5e029356945..5dc76143e2f 100644 --- a/lib/util/charset/codepoints.c +++ b/lib/util/charset/codepoints.c @@ -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;