summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-09-30 13:21:27 -0700
committerKarolin Seeger <kseeger@samba.org>2008-10-06 13:01:12 +0200
commitac2046979cacf96f8d4df7c5ece06e55d51758c8 (patch)
treec4ed99e3a2db69eacf39b03315278ca75fec569b
parent37d4e792bfd72e4b12811e0fbdb75cec2eda8f2a (diff)
downloadsamba-ac2046979cacf96f8d4df7c5ece06e55d51758c8.tar.gz
samba-ac2046979cacf96f8d4df7c5ece06e55d51758c8.tar.xz
samba-ac2046979cacf96f8d4df7c5ece06e55d51758c8.zip
Fix the make test problem Karolin reported. Now rename_open_files actually works correctly we must emit the change notify before we change the name, not before.
Jeremy. (cherry picked from commit 10ae99d86c0c90bee9a0538854f6f96fc7cbbc23)
-rw-r--r--source/smbd/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 466fef960ca..2d271ab59c4 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -5556,10 +5556,10 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
DEBUG(3,("rename_internals_fsp: succeeded doing rename on %s -> %s\n",
fsp->fsp_name,newname));
- rename_open_files(conn, lck, newname);
-
notify_rename(conn, fsp->is_directory, fsp->fsp_name, newname);
+ rename_open_files(conn, lck, newname);
+
/*
* A rename acts as a new file create w.r.t. allowing an initial delete
* on close, probably because in Windows there is a new handle to the