r9246: Patch from Marcel samba.10.maazl@spamgourmet.com for OS/2 trans2 open
authorJeremy Allison <jra@samba.org>
Thu, 11 Aug 2005 22:45:57 +0000 (22:45 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:00:28 +0000 (11:00 -0500)
reply bugs.
Jeremy.

source/smbd/trans2.c

index e1462c0103604daa66beb152b6299ec3aa873674..6cebff61ed4325ab0f72cae8a0d03727014e41ea 100644 (file)
@@ -878,8 +878,9 @@ static int call_trans2open(connection_struct *conn, char *inbuf, char *outbuf, i
        SSVAL(params,2,open_attr);
        put_dos_date2(params,4, mtime);
        SIVAL(params,8, (uint32)size);
-       SSVAL(params,12,open_ofun);
-       SSVAL(params,16,0); /* Padding. */
+       SSVAL(params,12,deny_mode);
+       SSVAL(params,14,0); /* open_type - file or directory. */
+       SSVAL(params,16,0); /* open_state - only valid for IPC device. */
 
        if (oplock_request && lp_fake_oplocks(SNUM(conn))) {
                smb_action |= EXTENDED_OPLOCK_GRANTED;