mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: pass fsp to fsinfo_unix_valid_level()
We need the fsp down in fsinfo_unix_valid_level(), pass it down. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
bca6f0298f
commit
01022d036f
@ -1948,6 +1948,7 @@ static void samba_extended_info_version(struct smb_extended_info *extended_info)
|
||||
}
|
||||
|
||||
static bool fsinfo_unix_valid_level(connection_struct *conn,
|
||||
struct files_struct *fsp,
|
||||
uint16_t info_level)
|
||||
{
|
||||
if (conn->sconn->using_smb2 &&
|
||||
@ -2470,7 +2471,7 @@ cBytesSector=%u, cUnitTotal=%u, cUnitAvail=%d\n", (unsigned int)bsize, (unsigned
|
||||
int rc;
|
||||
struct vfs_statvfs_struct svfs;
|
||||
|
||||
if (!fsinfo_unix_valid_level(conn, info_level)) {
|
||||
if (!fsinfo_unix_valid_level(conn, fsp, info_level)) {
|
||||
return NT_STATUS_INVALID_LEVEL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user