From 1045c786246658f5d8e289d46cb4bdfc87655c71 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 2 Apr 2005 00:13:27 +0000 Subject: r6174: Fixup T2 open call - we were returning 2 bytes short. Jeremy. (This used to be commit 0c7de7615bf0edbb36a3afee445db13a71e26d2e) --- source3/smbd/open.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source3/smbd/open.c') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 41ced42034..fbe763ab0a 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1098,23 +1098,6 @@ files_struct *open_file_shared1(connection_struct *conn,char *fname, SMB_STRUCT_ return print_fsp_open(conn, fname); } - switch(ofun) { - case FILE_EXISTS_OPEN: - case FILE_EXISTS_TRUNCATE: - case FILE_EXISTS_FAIL | FILE_CREATE_IF_NOT_EXIST: - case FILE_EXISTS_OPEN | FILE_CREATE_IF_NOT_EXIST: - case FILE_EXISTS_TRUNCATE | FILE_CREATE_IF_NOT_EXIST: - break; /* These are ok. */ - default: - if (GET_OPEN_MODE(share_mode) == DOS_OPEN_EXEC) { - ofun = FILE_EXISTS_FAIL | FILE_CREATE_IF_NOT_EXIST; - break; - } - /* Cause caller to force dos errors. */ - set_saved_error_triple(ERRDOS, ERRbadaccess, NT_STATUS_INVALID); - return NULL; - } - DEBUG(10,("open_file_shared: fname = %s, dos_attrs = %x, share_mode = %x, ofun = %x, mode = %o, oplock request = %d\n", fname, new_dos_mode, share_mode, ofun, (int)mode, oplock_request )); -- cgit