svn commit: samba r3107 - in branches/SAMBA_4_0/source/ntvfs: .
tridge at samba.org
tridge at samba.org
Thu Oct 21 06:36:15 GMT 2004
Author: tridge
Date: 2004-10-21 06:36:14 +0000 (Thu, 21 Oct 2004)
New Revision: 3107
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ntvfs&rev=3107&nolog=1
Log:
slight tweak to the openx -> ntcreatex mapping routine. This mapping
can never be perfect, as openx can do things that ntcreatex can't, but
with this tweak we get close (the BASE-DENY1 test passes completely,
for example)
Modified:
branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c
Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c 2004-10-21 06:34:17 UTC (rev 3106)
+++ branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c 2004-10-21 06:36:14 UTC (rev 3107)
@@ -96,7 +96,7 @@
break;
case OPENX_MODE_ACCESS_RDWR:
case OPENX_MODE_ACCESS_FCB:
- io2->generic.in.access_mask = GENERIC_RIGHTS_FILE_ALL_ACCESS;
+ io2->generic.in.access_mask = GENERIC_RIGHTS_FILE_READ | GENERIC_RIGHTS_FILE_WRITE;
break;
}
@@ -201,7 +201,6 @@
switch(io->open.in.flags & OPEN_FLAGS_DENY_MASK) {
case OPEN_FLAGS_DENY_DOS:
/* DENY_DOS is quite strange - it depends on the filename! */
- /* REWRITE: is this necessary for OPEN? */
if (is_exe_file(io->open.in.fname)) {
io2->generic.in.share_access = NTCREATEX_SHARE_ACCESS_READ | NTCREATEX_SHARE_ACCESS_WRITE;
} else {
More information about the samba-cvs
mailing list