git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r3147: added basic share modes support for pvfs (or more precisely, ntcreatex
[bbaumbach/samba-autobuild/.git]
/
source4
/
ntvfs
/
posix
/
pvfs_write.c
diff --git
a/source4/ntvfs/posix/pvfs_write.c
b/source4/ntvfs/posix/pvfs_write.c
index 8bbb4f860555ec8efce513846cb3aeddb01dcdce..a7b7084a08619e4dfd82a64953c5a36ad57b28f1 100644
(file)
--- a/
source4/ntvfs/posix/pvfs_write.c
+++ b/
source4/ntvfs/posix/pvfs_write.c
@@
-48,6
+48,10
@@
NTSTATUS pvfs_write(struct ntvfs_module_context *ntvfs,
return NT_STATUS_FILE_IS_A_DIRECTORY;
}
+ if (!(f->access_mask & SA_RIGHT_FILE_WRITE_DATA)) {
+ return NT_STATUS_ACCESS_VIOLATION;
+ }
+
status = pvfs_check_lock(pvfs, f, req->smbpid,
wr->writex.in.offset,
wr->writex.in.count,