]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs: Use is_ntfs_stream_smb_fname() where appropriate
authorVolker Lendecke <vl@samba.org>
Mon, 30 Dec 2024 19:16:41 +0000 (20:16 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 23 Jan 2025 23:08:38 +0000 (23:08 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_acl_common.c

index 322c2ea48d7d2fee31322798487d9dd8c22d78db..435807068318a27a8e369429acc3a28d77077609 100644 (file)
@@ -1099,7 +1099,7 @@ int unlink_acl_common(struct vfs_handle_struct *handle,
                   see if we need to root override. */
 
                /* Don't do anything fancy for streams. */
-               if (smb_fname->stream_name) {
+               if (is_ntfs_stream_smb_fname(smb_fname)) {
                        return -1;
                }
                return acl_common_remove_object(handle,