summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-09-20 19:00:21 +0000
committerJeremy Allison <jra@samba.org>2000-09-20 19:00:21 +0000
commit07dffc4ee931cbc61197e2da277df9c404a77469 (patch)
tree198791359df97127e4f8474200d11c39b9472c7f /source/smbd/reply.c
parentd666b958bc335c7fceebeb7a6333d78bc421c30f (diff)
downloadsamba-07dffc4ee931cbc61197e2da277df9c404a77469.tar.gz
samba-07dffc4ee931cbc61197e2da277df9c404a77469.tar.xz
samba-07dffc4ee931cbc61197e2da277df9c404a77469.zip
Fix to allow a timestamp of zero to cause an instantaneous changenotify
scan - then call this from renames. This allows instantaneous update for W2k renames. Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 397cae62217..9dd5a9ef68d 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -3639,8 +3639,17 @@ int reply_mv(connection_struct *conn, char *inbuf,char *outbuf, int dum_size, in
DEBUG(3,("reply_mv : %s -> %s\n",name,newname));
outsize = rename_internals(conn, inbuf, outbuf, name, newname, False);
- if(outsize == 0)
+ if(outsize == 0) {
+
+ /*
+ * Win2k needs a changenotify request response before it will
+ * update after a rename..
+ */
+
+ process_pending_change_notify_queue((time_t)0);
+
outsize = set_message(outbuf,0,0,True);
+ }
return(outsize);
}