diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-04-06 01:54:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:18 -0500 |
commit | fe071da009d910c3325f016ae9e4b349d726802f (patch) | |
tree | 15da730d49c7c6094654a707abd0f2f475a5ee84 /source4/ntvfs | |
parent | c5792dbbb5998368d18330add4143ca44e24e203 (diff) | |
download | samba-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.c | 6 |
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); + } } /* |