From 01022d036f5c9c8296d9174240a58e437c84f848 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 13 Nov 2023 08:04:33 +0100 Subject: [PATCH] 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 Reviewed-by: Jeremy Allison --- source3/smbd/smb2_trans2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index d4fdcadc442..84726c10eaa 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -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; }