From 836ff80b95403519f6ea925d3c45fcf191bc41d1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 13 Jan 2025 11:45:06 +0100 Subject: [PATCH] pysmbd: Init mangle_fns 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 Reviewed-by: Douglas Bagnall (cherry picked from commit 0a9946258eb4587f5c132805d7c44062c377f375) --- source3/smbd/pysmbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 9fe885a51b0..26286afe945 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -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; -- 2.47.2