[SMB3 POSIX] POSIX client creates a file, set the ARCHIVE bit or not
Jeremy Allison
jra at samba.org
Mon Oct 30 17:52:35 UTC 2023
On Mon, Oct 30, 2023 at 06:26:16PM +0100, Ralph Boehme wrote:
>On 10/30/23 17:28, Jeremy Allison wrote:
>>I *think* it was back from when most servers were running
>>without EA's, so archive was mapped to a POSIX perms bit.
>
>ah, that makes sense. Thanks!
>
>So building on that, maybe a tweak like
>
>if (new_dos_attributes & FILE_FLAG_POSIX_SEMANTICS)
> if (lp_store_dos_attributes(SNUM(conn))) {
> new_dos_attributes |= FILE_ATTRIBUTE_ARCHIVE;
> } else {
> new_dos_attributes = 0;
> }
>} else {
> ...
>}
>
>or similar logic is due?
Yep, sounds good to me !
More information about the samba-technical
mailing list