From: Jeremy Allison Date: Tue, 30 Sep 2008 20:21:27 +0000 (-0700) Subject: Fix the make test problem Karolin reported. Now rename_open_files actually works... X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10ae99d86c0c90bee9a0538854f6f96fc7cbbc23;p=thirdparty%2Fsamba.git 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. --- 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