svn commit: samba r6343 - in trunk/source/smbd: .
jra at samba.org
jra at samba.org
Thu Apr 14 21:00:46 GMT 2005
Author: jra
Date: 2005-04-14 21:00:45 +0000 (Thu, 14 Apr 2005)
New Revision: 6343
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=6343
Log:
Fix bug #2601 - it seems that DOS_OPEN_EXEC does mean readonly. Needed
for Win9x and OS/2 clients. More Samba4 tests against W2k3 will be needed
to confirm this but in the meantime get it up and running.
Jeremy.
Modified:
trunk/source/smbd/open.c
Changeset:
Modified: trunk/source/smbd/open.c
===================================================================
--- trunk/source/smbd/open.c 2005-04-14 13:19:40 UTC (rev 6342)
+++ trunk/source/smbd/open.c 2005-04-14 21:00:45 UTC (rev 6343)
@@ -1159,6 +1159,7 @@
append does not mean the same thing under dos and unix */
switch (GET_OPEN_MODE(share_mode)) {
+ case DOS_OPEN_EXEC:
case DOS_OPEN_RDONLY:
flags = O_RDONLY;
if (desired_access == 0)
@@ -1176,7 +1177,6 @@
desired_access = FILE_READ_DATA|FILE_WRITE_DATA;
break;
case DOS_OPEN_RDWR:
- case DOS_OPEN_EXEC:
flags = O_RDWR;
if (desired_access == 0)
desired_access = FILE_READ_DATA|FILE_WRITE_DATA;
More information about the samba-cvs
mailing list