summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-02-27 11:25:33 +0100
committerStefan Metzmacher <metze@samba.org>2008-02-27 16:33:15 +0100
commit8efcd871ce7195886430399c221ab0d8e641cccb (patch)
tree3f025d6014f8939b52e1e6e37c3941d4908536c6 /source4
parenteefaf470bfad4a4233990de6ba44cd4db233ab17 (diff)
downloadsamba-8efcd871ce7195886430399c221ab0d8e641cccb.tar.gz
samba-8efcd871ce7195886430399c221ab0d8e641cccb.tar.bz2
samba-8efcd871ce7195886430399c221ab0d8e641cccb.zip
pvfs_rename: we need a do a odb_rename() after pvfs_do_rename()
metze (This used to be commit f4f593a1acd4a39f7be639465f0be4b3a97a9bfc)
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/pvfs_rename.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_rename.c b/source4/ntvfs/posix/pvfs_rename.c
index e3192370cc..3c60c00247 100644
--- a/source4/ntvfs/posix/pvfs_rename.c
+++ b/source4/ntvfs/posix/pvfs_rename.c
@@ -533,6 +533,9 @@ static NTSTATUS pvfs_rename_nt(struct ntvfs_module_context *ntvfs,
status = pvfs_access_check_parent(pvfs, req, name2, SEC_DIR_ADD_FILE);
NT_STATUS_NOT_OK_RETURN(status);
status = pvfs_do_rename(pvfs, name1, name2->full_name);
+ if (NT_STATUS_IS_OK(status)) {
+ status = odb_rename(lck, name2->full_name);
+ }
NT_STATUS_NOT_OK_RETURN(status);
break;