summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-09-30 13:26:41 -0700
committerJeremy Allison <jra@samba.org>2008-09-30 13:26:41 -0700
commit97d57d03640664416500efb1f1cf8e5a4a9522d8 (patch)
treefa81fafd0cfd6050be7186264d01210753f47140 /source3
parentf84093df863eb00238a6be1caba59d926f18e7a5 (diff)
downloadsamba-97d57d03640664416500efb1f1cf8e5a4a9522d8.tar.gz
samba-97d57d03640664416500efb1f1cf8e5a4a9522d8.tar.bz2
samba-97d57d03640664416500efb1f1cf8e5a4a9522d8.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.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 6933533672..8bfa28faea 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -5583,10 +5583,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