From: Volker Lendecke Date: Fri, 6 Oct 2023 12:03:31 +0000 (+0200) Subject: smbd: Expand IS_DOS_ARCHIVE() macros X-Git-Tag: tevent-0.16.0~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=282957759452887daef402d9ec32f247c936f3cd;p=thirdparty%2Fsamba.git 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/fileio.c b/source3/smbd/fileio.c index e5de8272734..3b3d3a5fcd9 100644 --- a/source3/smbd/fileio.c +++ b/source3/smbd/fileio.c @@ -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,