1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

smbd: Expand IS_DOS_ARCHIVE() macros

Together with the "dosmode | FILE_ATTRIBUTE_ARCHIVE" a line below this
is more obvious to me.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2023-10-06 14:03:31 +02:00 committed by Jeremy Allison
parent 226a7c7bc3
commit 2829577594

View File

@ -246,7 +246,7 @@ void mark_file_modified(files_struct *fsp)
}
dosmode = fdos_mode(fsp);
if (IS_DOS_ARCHIVE(dosmode)) {
if (dosmode & FILE_ATTRIBUTE_ARCHIVE) {
return;
}
file_set_dosmode(fsp->conn, fsp->fsp_name,