summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-12-28 00:01:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:44 -0500
commit654f747e6df985b6b519925662bf1014b98d1670 (patch)
tree27226a608c72311654780c4d96540cd3fe54b5a2 /source3/smbd/reply.c
parent2703b3ac480b1c29684b13297f5e78481c889223 (diff)
downloadsamba-654f747e6df985b6b519925662bf1014b98d1670.tar.gz
samba-654f747e6df985b6b519925662bf1014b98d1670.tar.bz2
samba-654f747e6df985b6b519925662bf1014b98d1670.zip
r20370: Now we've gone to the trouble of getting an NT status
from open_file_ntcreate make sure we return it on rename error. Jeremy. (This used to be commit 633f02fb860223585f388e64c1a2d770db52d4f0)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index a156409942..1bd87a5a13 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1878,7 +1878,7 @@ static NTSTATUS can_rename(connection_struct *conn, char *fname, uint16 dirtype,
NULL, &fsp);
if (!NT_STATUS_IS_OK(status)) {
- return NT_STATUS_ACCESS_DENIED;
+ return status;
}
close_file(fsp,NORMAL_CLOSE);
return NT_STATUS_OK;