]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: allow POSIX opens for file_set_dosmode() in mark_file_modified()
authorRalph Boehme <slow@samba.org>
Tue, 31 Oct 2023 11:23:44 +0000 (12:23 +0100)
committerJeremy Allison <jra@samba.org>
Sun, 5 Nov 2023 18:34:38 +0000 (18:34 +0000)
As this check was previously added to file_set_dosmode() this is not yet a
change in behaviour.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/fileio.c

index 3b3d3a5fcd964e9cd02c94957ca46c964317a00a..ed62159a4955976616a9514614c3d96bf89ed0e4 100644 (file)
@@ -237,9 +237,6 @@ void mark_file_modified(files_struct *fsp)
 
        fsp->fsp_flags.modified = true;
 
-       if (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN) {
-               return;
-       }
        if (!(lp_store_dos_attributes(SNUM(fsp->conn)) ||
              MAP_ARCHIVE(fsp->conn))) {
                return;