mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
smbd: use openat_pathref_fsp() in reply_search()
Ensures we have a pathref handle in the smb_fname we pass to SMB_VFS_CREATE_FILE(). As the create_disposition is FILE_OPEN we just return the error if openat_pathref_fsp() fails Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
0bdaba47f4
commit
14b0cc6b9a
@ -1837,6 +1837,15 @@ void reply_search(struct smb_request *req)
|
||||
goto out;
|
||||
}
|
||||
|
||||
nt_status = openat_pathref_fsp(conn->cwd_fsp, smb_dname);
|
||||
if (NT_STATUS_EQUAL(nt_status, NT_STATUS_STOPPED_ON_SYMLINK)) {
|
||||
nt_status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
|
||||
}
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
reply_nterror(req, nt_status);
|
||||
goto out;
|
||||
}
|
||||
|
||||
/*
|
||||
* Open an fsp on this directory for the dptr.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user