r26429: Avoid use of global_smb_iconv_convenience.
[samba.git] / source4 / ntvfs / posix / pvfs_util.c
index b7cba00d9bc87fbe14f691f40c3ff0a7782d61d3..b52c3e387bd45516a44d478e1a0c0b2fd6734dd9 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "includes.h"
 #include "vfs_posix.h"
+#include "param/param.h"
 
 /*
   return true if a string contains one of the CIFS wildcard characters
@@ -181,7 +182,7 @@ uint32_t pvfs_name_hash(const char *key, size_t length)
 
        while (*key && length--) {
                size_t c_size;
-               codepoint_t c = next_codepoint(global_smb_iconv_convenience, key, &c_size);
+               codepoint_t c = next_codepoint(lp_iconv_convenience(global_loadparm), key, &c_size);
                c = toupper_w(c);
                 value *= fnv1_prime;
                 value ^= (uint32_t)c;