summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-07-18 22:32:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:00:09 -0500
commit01822a7e054ed83fa4961498f530ede615ac7c24 (patch)
treed4ab2ace5e64ecb36d09626e88cc61734cbb7915 /source3/smbd
parentbe964085d24fd0fa5f3149c8253528edf9f7cfdd (diff)
downloadsamba-01822a7e054ed83fa4961498f530ede615ac7c24.tar.gz
samba-01822a7e054ed83fa4961498f530ede615ac7c24.tar.bz2
samba-01822a7e054ed83fa4961498f530ede615ac7c24.zip
r8556: Fix bug #2878 - Norton commander not running on OS/2 client - we were
not correctly returning the requested open mode. Thanks to alex@infobit.ru for reporting this. Jeremy. (This used to be commit 7ff7211b808e708c00a3b0f57be8d1af3c632bd7)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 4ce93222f7..770e15f276 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1352,7 +1352,7 @@ int reply_open(connection_struct *conn, char *inbuf,char *outbuf, int dum_size,
put_dos_date3(outbuf,smb_vwv2,mtime);
}
SIVAL(outbuf,smb_vwv4,(uint32)size);
- SSVAL(outbuf,smb_vwv6,FILE_WAS_OPENED);
+ SSVAL(outbuf,smb_vwv6,GET_OPENX_MODE(deny_mode));
if (oplock_request && lp_fake_oplocks(SNUM(conn))) {
SCVAL(outbuf,smb_flg,CVAL(outbuf,smb_flg)|CORE_OPLOCK_GRANTED);