mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
smbd: adjust allocation size check across handles in smbd_do_qfilepathinfo()
Check all open files if either we don't have an fsp or if the fsp is not a full FSA fsp, ie not one which was created by SMB_VFS_CREATE_FILE() but by openat_pathref_fsp(). Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
2aac91003e
commit
435c0f8828
@ -5304,7 +5304,7 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
|
|||||||
|
|
||||||
allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn, fsp, psbuf);
|
allocation_size = SMB_VFS_GET_ALLOC_SIZE(conn, fsp, psbuf);
|
||||||
|
|
||||||
if (!fsp) {
|
if (fsp == NULL || !fsp->fsp_flags.is_fsa) {
|
||||||
/* Do we have this path open ? */
|
/* Do we have this path open ? */
|
||||||
files_struct *fsp1;
|
files_struct *fsp1;
|
||||||
struct file_id fileid = vfs_file_id_from_sbuf(conn, psbuf);
|
struct file_id fileid = vfs_file_id_from_sbuf(conn, psbuf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user