[SMB3 POSIX] POSIX client creates a file, set the ARCHIVE bit or not

Ralph Boehme slow at samba.org
Mon Oct 30 17:26:16 UTC 2023


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?

Thanks!
-slow

--
SerNet Samba Team Lead          https://samba.plus/
Samba Team Member                https://samba.org/
SAMBA+ packages                 https://samba.plus/
Worldwide Samba Support, Consulting and Development

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20231030/db52486b/OpenPGP_signature.sig>


More information about the samba-technical mailing list