]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pysmbd: Init mangle_fns
authorVolker Lendecke <vl@samba.org>
Mon, 13 Jan 2025 10:45:06 +0000 (11:45 +0100)
committerBjörn Baumbach <bb@sernet.de>
Fri, 14 Feb 2025 15:20:36 +0000 (15:20 +0000)
openat_pathref_fsp() eventually calls mangling functions, so we have
to initialize them.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15807
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/smbd/pysmbd.c

index 9fe885a51b002e3d53d0bb20273764aaccb98f6e..26286afe945ad3d6e404a16332482d2e1a36d7fd 100644 (file)
@@ -60,6 +60,8 @@ static connection_struct *get_conn_tos(
        struct smb_filename cwd_fname = {0};
        int ret;
 
+       mangle_reset_cache();
+
        if (!posix_locking_init(false)) {
                PyErr_NoMemory();
                return NULL;