]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: Fix cached dos attributes
authorVolker Lendecke <vl@samba.org>
Mon, 24 Jun 2024 14:50:57 +0000 (16:50 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 28 Jun 2024 14:32:27 +0000 (14:32 +0000)
commit0ebabaedbc06b3b4f658430dcf2edb0711f599fd
tree88fe44b6e6d0470462fc9172ff3dd444982164f2
parenta32f52e573561900cbed097c453b5240df3b0ae5
smbd: Fix cached dos attributes

The callers of fset_dos_mode must set the cached attributes
themselves, which I did not see. I tried, but I did not find a clean
way to fix this behind SMB_VFS_FSET_DOS_ATTRIBUTES, with a smb_fname
and smb_fname->fsp->fsp_name we might have two copies of the cached
dos attributes around and if we only update fsp->fsp_name, we might
miss the outer one.

Not doing a test, this is really fresh code, and in the future we must
reorganize setting and caching dos attributes anyway.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Jun 28 14:32:27 UTC 2024 on atb-devel-224
source3/modules/util_reparse.c