From: Ralph Boehme Date: Mon, 29 Apr 2024 16:38:10 +0000 (+0200) Subject: smbd: SMB3 POSIX Extensions statfs() is broken X-Git-Tag: tdb-1.4.13~1199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a440864dde9e9de8748b1e930bfa59f25eaf08a;p=thirdparty%2Fsamba.git smbd: SMB3 POSIX Extensions statfs() is broken Regression introduced by 55d98b29eb294542cc4947573f233e0d5e6966cb. D'oh! We'll add a regression test for this soon, but for now we want to unblocking testing from the linux client... BUG: https://bugzilla.samba.org/show_bug.cgi?id=15639 Signed-off-by: Ralph Boehme Reviewed-by: Volker Lendecke Reviewed-by: Stefan Metzmacher Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Thu Sep 19 21:27:07 UTC 2024 on atb-devel-224 --- diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 8062cb05d28..26b9a9123c3 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -2002,7 +2002,7 @@ static bool fsinfo_unix_valid_level(connection_struct *conn, uint16_t info_level) { if (conn_using_smb2(conn->sconn) && - fsp->posix_flags == FSP_POSIX_FLAGS_OPEN && + (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) && info_level == SMB2_FS_POSIX_INFORMATION_INTERNAL) { return true;