git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01022d0
)
smbd: check is POSIX is enabled on the fsp in fsinfo_unix_valid_level()
author
Ralph Boehme
<slow@samba.org>
Mon, 13 Nov 2023 09:35:30 +0000
(10:35 +0100)
committer
Jeremy Allison
<jra@samba.org>
Mon, 27 Nov 2023 18:31:35 +0000
(18:31 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_trans2.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_trans2.c
b/source3/smbd/smb2_trans2.c
index 84726c10eaa766fff4c9b54694c045e6de6cb347..5ed2d9ffcac0c2ed2aad5f71e23b89875c3fe2fa 100644
(file)
--- a/
source3/smbd/smb2_trans2.c
+++ b/
source3/smbd/smb2_trans2.c
@@
-1952,7
+1952,9
@@
static bool fsinfo_unix_valid_level(connection_struct *conn,
uint16_t info_level)
{
if (conn->sconn->using_smb2 &&
- info_level == SMB2_FS_POSIX_INFORMATION_INTERNAL) {
+ fsp->posix_flags == FSP_POSIX_FLAGS_OPEN &&
+ info_level == SMB2_FS_POSIX_INFORMATION_INTERNAL)
+ {
return true;
}
#if defined(SMB1SERVER)