mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
vfs_streams_depot: only assert AT_FDCWD for streams
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
@ -627,11 +627,6 @@ static int streams_depot_openat(struct vfs_handle_struct *handle,
|
||||
NTSTATUS status;
|
||||
int ret = -1;
|
||||
|
||||
/*
|
||||
* For now assert this so the below SMB_VFS_STAT() is ok.
|
||||
*/
|
||||
SMB_ASSERT(dirfsp->fh->fd == AT_FDCWD);
|
||||
|
||||
if (!is_named_stream(smb_fname)) {
|
||||
return SMB_VFS_NEXT_OPENAT(handle,
|
||||
dirfsp,
|
||||
@ -641,6 +636,11 @@ static int streams_depot_openat(struct vfs_handle_struct *handle,
|
||||
mode);
|
||||
}
|
||||
|
||||
/*
|
||||
* For now assert this so the below SMB_VFS_STAT() is ok.
|
||||
*/
|
||||
SMB_ASSERT(dirfsp->fh->fd == AT_FDCWD);
|
||||
|
||||
/* Ensure the base file still exists. */
|
||||
smb_fname_base = synthetic_smb_fname(talloc_tos(),
|
||||
smb_fname->base_name,
|
||||
|
Reference in New Issue
Block a user