summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-04-06 01:54:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:00:18 -0500
commitfe071da009d910c3325f016ae9e4b349d726802f (patch)
tree15da730d49c7c6094654a707abd0f2f475a5ee84 /source4/ntvfs
parentc5792dbbb5998368d18330add4143ca44e24e203 (diff)
downloadsamba-fe071da009d910c3325f016ae9e4b349d726802f.tar.gz
samba-fe071da009d910c3325f016ae9e4b349d726802f.tar.bz2
samba-fe071da009d910c3325f016ae9e4b349d726802f.zip
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)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/posix/pvfs_notify.c6
1 files changed, 4 insertions, 2 deletions
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);
+ }
}
/*