git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d10c23
)
Ensure we emit the notify message before renaming the open files.
author
Jeremy Allison
<jra@samba.org>
Tue, 30 Sep 2008 20:37:54 +0000
(13:37 -0700)
committer
Jeremy Allison
<jra@samba.org>
Tue, 30 Sep 2008 20:37:54 +0000
(13:37 -0700)
Jeremy.
source/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source/smbd/reply.c
b/source/smbd/reply.c
index bccd1164855c8cc05003297390392d1b23aa8614..d8cbfd8e87f7e8e7a2098ed294317de82f1bcf9f 100644
(file)
--- a/
source/smbd/reply.c
+++ b/
source/smbd/reply.c
@@
-4644,11
+4644,11
@@
NTSTATUS rename_internals(connection_struct *conn,
if(SMB_VFS_RENAME(conn,directory, newname) == 0) {
DEBUG(3,("rename_internals: succeeded doing rename "
"on %s -> %s\n", directory, newname));
+ notify_rename(conn, S_ISDIR(sbuf1.st_mode),
+ directory, newname);
rename_open_files(conn, lck, sbuf1.st_dev,
sbuf1.st_ino, newname);
TALLOC_FREE(lck);
- notify_rename(conn, S_ISDIR(sbuf1.st_mode),
- directory, newname);
return NT_STATUS_OK;
}