r6199: Only do the strange DOS error for openX, not trans2open.
authorJeremy Allison <jra@samba.org>
Mon, 4 Apr 2005 20:40:39 +0000 (20:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:56:28 +0000 (10:56 -0500)
Jeremy.
(This used to be commit 65970dfc5b8f174fe29201789d6ddcf8802ad48c)

source3/smbd/trans2.c

index cbb350ebb7dc85a33a96ac6269f40c857ab462a5..e7f44a659253677feb2b8e564b1afd8edb7b784f 100644 (file)
@@ -786,9 +786,6 @@ static int call_trans2open(connection_struct *conn, char *inbuf, char *outbuf, i
        if (open_ofun == 0) {
                if (GET_OPEN_MODE(open_mode) == DOS_OPEN_EXEC) {
                        open_ofun = FILE_EXISTS_FAIL | FILE_CREATE_IF_NOT_EXIST;
-               } else {
-                       END_PROFILE(SMBopenX);
-                       return ERROR_FORCE_DOS(ERRDOS, ERRbadaccess);
                }
        }