summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-10-06 03:41:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:04:53 -0500
commit62ba3454251daf59071a6b2663035b04c5438647 (patch)
tree4b5e3fbdf3592f4cec014dfae75ad5cee9434633 /source/smbd
parent0e8cf8eef59e38ba9a79f6c688abe9f1ac3bf64d (diff)
downloadsamba-62ba3454251daf59071a6b2663035b04c5438647.tar.gz
samba-62ba3454251daf59071a6b2663035b04c5438647.tar.xz
samba-62ba3454251daf59071a6b2663035b04c5438647.zip
r10750: Ensure we match W2K3 in forcing DOS errors in a couple of cases.
Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 4d876d42891..47da9032563 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -1312,7 +1312,7 @@ int reply_open(connection_struct *conn, char *inbuf,char *outbuf, int dum_size,
if (!map_open_params_to_ntcreate(fname, deny_mode, OPENX_FILE_EXISTS_OPEN,
&access_mask, &share_mode, &create_disposition, &create_options)) {
END_PROFILE(SMBopen);
- return ERROR_DOS(ERRDOS, ERRbadaccess);
+ return ERROR_FORCE_DOS(ERRDOS, ERRbadaccess);
}
fsp = open_file_ntcreate(conn,fname,&sbuf,
@@ -1435,7 +1435,7 @@ int reply_open_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
&create_disposition,
&create_options)) {
END_PROFILE(SMBopenX);
- return ERROR_DOS(ERRDOS, ERRbadaccess);
+ return ERROR_FORCE_DOS(ERRDOS, ERRbadaccess);
}
fsp = open_file_ntcreate(conn,fname,&sbuf,