]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: fix sharing access check for directories
authorRalph Boehme <slow@samba.org>
Fri, 25 Oct 2024 15:22:57 +0000 (17:22 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 29 Oct 2024 12:44:49 +0000 (12:44 +0000)
commitfdd133ae650d13cb457f7e7529f3bb6df47d8cee
tree24395c8f3a097b537768724f944eeb7dc4dc5fe1
parent2065f006560ad6a7857e49ceb326bc70ce6d60b6
smbd: fix sharing access check for directories

This was missing from commit 6140c3177a0330f42411618c3fca28930ea02a21 and causes
all opens of directories to be handled as stat opens, bypassing the sharemode
check.

Not adding a test at this time, as my (hopefully) soon to be merged Directory
Leases branch has a test which actually detected this problem.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15732

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Oct 29 12:44:49 UTC 2024 on atb-devel-224
source3/smbd/open.c