]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r6344: Fix bug #2601 - it seems that DOS_OPEN_EXEC does mean readonly. Needed
authorJeremy Allison <jra@samba.org>
Thu, 14 Apr 2005 21:01:01 +0000 (21:01 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:37 +0000 (10:56 -0500)
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.

source/smbd/open.c

index 559994ca46c2e0fd3df110cd8ba2e3da3f63acaa..a3bc4a922d34abe8059648fc1a6c6e9bffc8ea78 100644 (file)
@@ -1159,6 +1159,7 @@ files_struct *open_file_shared1(connection_struct *conn,char *fname, SMB_STRUCT_
                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 @@ files_struct *open_file_shared1(connection_struct *conn,char *fname, SMB_STRUCT_
                                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;