]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: SMB3 POSIX Extensions statfs() is broken
authorRalph Boehme <slow@samba.org>
Mon, 29 Apr 2024 16:38:10 +0000 (18:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 19 Sep 2024 21:27:07 +0000 (21:27 +0000)
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 <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Sep 19 21:27:07 UTC 2024 on atb-devel-224

source3/smbd/smb2_trans2.c

index 8062cb05d28bbafec38ad3e4f9c908b895e9f0e5..26b9a9123c323ff46e7c5fd6d770f046225fa532 100644 (file)
@@ -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;