From e91394ceccd762a204e3b59d379173fd1090ff41 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 12 Apr 2006 16:19:42 +0000 Subject: r15056: w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION metze (This used to be commit 5c1d96b36f14538360d90afc76ddba59d4feee1b) --- source4/ntvfs/posix/pvfs_write.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source4/ntvfs/posix') diff --git a/source4/ntvfs/posix/pvfs_write.c b/source4/ntvfs/posix/pvfs_write.c index 298c95e90b..1da1985550 100644 --- a/source4/ntvfs/posix/pvfs_write.c +++ b/source4/ntvfs/posix/pvfs_write.c @@ -50,16 +50,14 @@ NTSTATUS pvfs_write(struct ntvfs_module_context *ntvfs, } if (!(f->access_mask & (SEC_FILE_WRITE_DATA | SEC_FILE_APPEND_DATA))) { - return NT_STATUS_ACCESS_VIOLATION; + return NT_STATUS_ACCESS_DENIED; } status = pvfs_check_lock(pvfs, f, req->smbpid, wr->writex.in.offset, wr->writex.in.count, WRITE_LOCK); - if (!NT_STATUS_IS_OK(status)) { - return status; - } + NT_STATUS_NOT_OK_RETURN(status); if (f->handle->name->stream_name) { ret = pvfs_stream_write(pvfs, -- cgit