svn commit: samba r15056 - in
branches/SAMBA_4_0/source/ntvfs/posix: .
metze at samba.org
metze at samba.org
Wed Apr 12 16:19:42 GMT 2006
Author: metze
Date: 2006-04-12 16:19:42 +0000 (Wed, 12 Apr 2006)
New Revision: 15056
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15056
Log:
w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION
metze
Modified:
branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c 2006-04-12 15:52:17 UTC (rev 15055)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c 2006-04-12 16:19:42 UTC (rev 15056)
@@ -50,16 +50,14 @@
}
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,
More information about the samba-cvs
mailing list