Ensure we don't use delayed writes on POSIX opened files.
[ira/wip.git] / source3 / smbd / trans2.c
index 41081ca0dde23f2dd1bb5a24ad0cd155e2daa3f5..28b07527cc42ec80286550601321130b7774e99d 100644 (file)
@@ -6249,6 +6249,11 @@ size = %.0f, uid = %u, gid = %u, raw perms = 0%o\n",
        }
 
        /* Deal with any time changes. */
+       if (null_timespec(ft.mtime) && null_timespec(ft.atime)) {
+               /* No change, don't cancel anything. */
+               return status;
+       }
+
        id = vfs_file_id_from_sbuf(conn, psbuf);
        for(all_fsps = file_find_di_first(id); all_fsps;
                        all_fsps = file_find_di_next(all_fsps)) {