We're not changing last write, but setting this to be FILE_NOTIFY_CHANGE_CREATION
authorJeremy Allison <jra@samba.org>
Fri, 31 Jul 2009 18:19:19 +0000 (11:19 -0700)
committerJeremy Allison <jra@samba.org>
Fri, 31 Jul 2009 18:19:19 +0000 (11:19 -0700)
doesn't work. So use FILE_NOTIFY_CHANGE_LAST_WRITE (now seems to reliably fix
bug #6529 - Offline files conflict with Vista and Office 2003.
Jeremy.

source3/smbd/trans2.c

index 0daaf7c901082baad126699ab9ecb6d5b638948b..184a8580970acd3f2de4df0158457cc3d7b09246 100644 (file)
@@ -5250,7 +5250,7 @@ NTSTATUS smb_set_file_time(connection_struct *conn,
                if ((timespec_compare(&ft->atime, &ats) == 0) &&
                    (timespec_compare(&ft->mtime, &mts) == 0)) {
                        if (set_createtime || set_ctime) {
-                               notify_fname(conn, NOTIFY_ACTION_MODIFIED, action,
+                               notify_fname(conn, NOTIFY_ACTION_MODIFIED, FILE_NOTIFY_CHANGE_LAST_WRITE,
                                                smb_fname->base_name);
                        }
                        return NT_STATUS_OK;