diff options
author | Jeremy Allison <jra@samba.org> | 2005-10-06 03:41:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:04:53 -0500 |
commit | 8a1aa2c0034aa69d9a52f4adbb85485d3a0fa9cc (patch) | |
tree | d8b6dcbbfd3784dbe49b2bb3ac7291caa7b8d4bf | |
parent | 5b455c1755e0b23b96413bee7886c837b476620a (diff) | |
download | samba-8a1aa2c0034aa69d9a52f4adbb85485d3a0fa9cc.tar.gz samba-8a1aa2c0034aa69d9a52f4adbb85485d3a0fa9cc.tar.bz2 samba-8a1aa2c0034aa69d9a52f4adbb85485d3a0fa9cc.zip |
r10750: Ensure we match W2K3 in forcing DOS errors in a couple of cases.
Jeremy.
(This used to be commit 62ba3454251daf59071a6b2663035b04c5438647)
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 4d876d4289..47da903256 100644 --- a/source3/smbd/reply.c +++ b/source3/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, |