]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: psd->dacl can be NULL, use orig_num_aces
authorRalph Boehme <slow@samba.org>
Fri, 14 Nov 2025 13:55:12 +0000 (14:55 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 18 Nov 2025 10:13:44 +0000 (10:13 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15926

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Nov 18 10:13:44 UTC 2025 on atb-devel-224

source3/modules/vfs_fruit.c

index 933e00418a9ba2ecc043ca7171dfc2a54007a09a..d6c1cecbc522f6d2fc6a66d7dc40ce28739613e6 100644 (file)
@@ -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.
                 */