From 654f747e6df985b6b519925662bf1014b98d1670 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 28 Dec 2006 00:01:12 +0000 Subject: 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) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; -- cgit