summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-04-12 16:19:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:04 -0500
commite91394ceccd762a204e3b59d379173fd1090ff41 (patch)
tree01db80e9678cd3548babd145d78a363eb9825f58 /source4/ntvfs/posix
parent4f972f5c3363863d24cc07a348993d9ed8a9c830 (diff)
downloadsamba-e91394ceccd762a204e3b59d379173fd1090ff41.tar.gz
samba-e91394ceccd762a204e3b59d379173fd1090ff41.tar.bz2
samba-e91394ceccd762a204e3b59d379173fd1090ff41.zip
r15056: w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION
metze (This used to be commit 5c1d96b36f14538360d90afc76ddba59d4feee1b)
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_write.c6
1 files changed, 2 insertions, 4 deletions
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,