From 01822a7e054ed83fa4961498f530ede615ac7c24 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 18 Jul 2005 22:32:35 +0000 Subject: 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) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/reply.c') 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); -- cgit