From fe071da009d910c3325f016ae9e4b349d726802f Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Apr 2006 01:54:12 +0000 Subject: r14932: ensure that we send a NOTIFY_ACTION_OLD_NAME and NOTIFY_ACTION_NEW_NAME together to the client. (This used to be commit d58011b0f35c3299f35ba9d72a7b9b9b17253511) --- source4/ntvfs/posix/pvfs_notify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs/posix/pvfs_notify.c') diff --git a/source4/ntvfs/posix/pvfs_notify.c b/source4/ntvfs/posix/pvfs_notify.c index ea11a9ff90..652a5260d5 100644 --- a/source4/ntvfs/posix/pvfs_notify.c +++ b/source4/ntvfs/posix/pvfs_notify.c @@ -125,8 +125,10 @@ static void pvfs_notify_callback(void *private, const struct notify_event *ev) } n->current_buffer_size += len; - /* send what we have */ - pvfs_notify_send(n, NT_STATUS_OK); + /* send what we have, unless its the first part of a rename */ + if (ev->action != NOTIFY_ACTION_OLD_NAME) { + pvfs_notify_send(n, NT_STATUS_OK); + } } /* -- cgit