From: Ralph Boehme Date: Fri, 14 Nov 2025 13:55:12 +0000 (+0100) Subject: vfs_fruit: psd->dacl can be NULL, use orig_num_aces X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0de67cf0748139920006a4dd65cb77c874c3595f;p=thirdparty%2Fsamba.git vfs_fruit: psd->dacl can be NULL, use orig_num_aces BUG: https://bugzilla.samba.org/show_bug.cgi?id=15926 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke Autobuild-Date(master): Tue Nov 18 10:13:44 UTC 2025 on atb-devel-224 --- diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 933e00418a9..d6c1cecbc52 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -4664,7 +4664,7 @@ static NTSTATUS fruit_fset_nt_acl(vfs_handle_struct *handle, DBG_DEBUG("%s\n", fsp_str_dbg(fsp)); - if (config->ignore_zero_aces && (psd->dacl->num_aces == 0)) { + if (config->ignore_zero_aces && (orig_num_aces == 0)) { /* * Just ignore Set-ACL requests with zero ACEs. */