vfs: streams_xattr uses fsetxattr by now, remove an assert
authorVolker Lendecke <vl@samba.org>
Thu, 31 Mar 2022 15:49:06 +0000 (17:49 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 1 Apr 2022 20:19:29 +0000 (20:19 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_streams_xattr.c

index 9f7dc0a2c505e9357a8b37eaec7d611ca63b49c6..324490354b0de6048fa0598609eeba28869e4cbf 100644 (file)
@@ -345,11 +345,6 @@ static int streams_xattr_openat(struct vfs_handle_struct *handle,
 
        SMB_ASSERT(fsp_is_alternate_stream(fsp));
 
-       /*
-        * For now assert this, so the below SMB_VFS_SETXATTR() works.
-        */
-       SMB_ASSERT(fsp_get_pathref_fd(dirfsp) == AT_FDCWD);
-
        status = streams_xattr_get_name(handle, talloc_tos(),
                                        smb_fname->stream_name, &xattr_name);
        if (!NT_STATUS_IS_OK(status)) {