mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r15056: w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION
metze
This commit is contained in:
parent
7e709fd04d
commit
5c1d96b36f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user