Fix the make test problem Karolin reported. Now rename_open_files actually works...
authorJeremy Allison <jra@samba.org>
Tue, 30 Sep 2008 20:26:41 +0000 (13:26 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 30 Sep 2008 20:26:41 +0000 (13:26 -0700)
Jeremy.

source3/smbd/reply.c

index 6933533672e1e180693236ecae3243c19c3c975e..8bfa28faeaee8f990c1cfb0618c65c71b57c87aa 100644 (file)
@@ -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