1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

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)
This commit is contained in:
Jeremy Allison 2005-07-18 22:32:35 +00:00 committed by Gerald (Jerry) Carter
parent be964085d2
commit 01822a7e05

View File

@ -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);