From 301be8c99b4646f0947ef94e12ffda433854b659 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 31 Jul 2009 11:19:19 -0700 Subject: [PATCH] We're not changing last write, but setting this to be FILE_NOTIFY_CHANGE_CREATION 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 0daaf7c9010..184a8580970 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -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; -- 2.34.1