]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: fix checks for POSIX opens in file_find_subpath()
authorRalph Boehme <slow@samba.org>
Fri, 7 Mar 2025 11:57:07 +0000 (12:57 +0100)
committerRalph Boehme <slow@samba.org>
Fri, 7 Mar 2025 19:00:32 +0000 (19:00 +0000)
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/files.c

index 01af01628456e32e6ffe81b8804acc30da9eb5b0..ea8542b6ba4f0d6572fc4eb381cf0015ccea557d 100644 (file)
@@ -2203,7 +2203,9 @@ bool file_find_subpath(files_struct *dir_fsp)
                if (fsp == dir_fsp) {
                        continue;
                }
-               if (fsp->fsp_flags.posix_open) {
+               if (dir_fsp->fsp_flags.posix_open &&
+                   fsp->fsp_flags.posix_open)
+               {
                        continue;
                }