]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Expand IS_DOS_ARCHIVE() macros
authorVolker Lendecke <vl@samba.org>
Fri, 6 Oct 2023 12:03:31 +0000 (14:03 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 10 Oct 2023 23:23:40 +0000 (23:23 +0000)
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>
source3/smbd/fileio.c

index e5de8272734aa53b074f37a6ea3b83a88e40151b..3b3d3a5fcd964e9cd02c94957ca46c964317a00a 100644 (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,