diff options
Diffstat (limited to 'source3/smbd/mangle.c')
-rw-r--r-- | source3/smbd/mangle.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c index afc1ca12f0..ed69a6210e 100644 --- a/source3/smbd/mangle.c +++ b/source3/smbd/mangle.c @@ -29,6 +29,7 @@ static const struct { } mangle_backends[] = { { "hash", mangle_hash_init }, { "hash2", mangle_hash2_init }, + { "posix", posix_mangle_init }, /*{ "tdb", mangle_tdb_init }, */ { NULL, NULL } }; @@ -39,7 +40,7 @@ static const struct { static void mangle_init(void) { int i; - char *method; + const char *method; if (mangle_fns) return; @@ -70,6 +71,13 @@ void mangle_reset_cache(void) mangle_fns->reset(); } +void mangle_change_to_posix(void) +{ + mangle_fns = NULL; + lp_set_mangling_method("posix"); + mangle_reset_cache(); +} + /* see if a filename has come out of our mangling code */ |