search for: bigoffset

Displaying 1 result from an estimated 1 matches for "bigoffset".

Did you mean: argoffset
2002 Dec 20
1
smbclient and large file support
..._arg (args, int)); --- samba-2.2.7a/source/libsmb/clireadwrite.c Tue Apr 30 06:27:03 2002 +++ samba-2.2.7a-fixed/source/libsmb/clireadwrite.c Thu Dec 19 15:48:47 2002 @@ -30,10 +30,15 @@ static BOOL cli_issue_read(struct cli_state *cli, int fnum, off_t offset, size_t size, int i) { + BOOL bigoffset = False; + memset(cli->outbuf,'\0',smb_size); memset(cli->inbuf,'\0',smb_size); - set_message(cli->outbuf,10,0,True); + if ((SMB_BIG_UINT)offset >> 32) + bigoffset = True; + + set_message(cli->outbuf,bigoffset ? 12 : 10,0,True); SCVAL(cli->outbuf,s...