Changeset 736 for branches/samba-3.5.x/source3/libsmb/clireadwrite.c
- Timestamp:
- Nov 12, 2012, 5:38:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/libsmb/clireadwrite.c
r733 r736 89 89 struct tevent_req *req, *subreq; 90 90 struct cli_read_andx_state *state; 91 bool bigoffset = False;92 91 uint8_t wct = 10; 93 92 … … 116 115 SSVAL(state->vwv + 9, 0, 0); 117 116 118 if ((uint64_t)offset >> 32) { 119 bigoffset = true; 117 if (cli->capabilities & CAP_LARGE_FILES) { 120 118 SIVAL(state->vwv + 10, 0, 121 119 (((uint64_t)offset)>>32) & 0xffffffff); 122 wct += 2; 120 wct = 12; 121 } else { 122 if ((((uint64_t)offset) & 0xffffffff00000000LL) != 0) { 123 DEBUG(10, ("cli_read_andx_send got large offset where " 124 "the server does not support it\n")); 125 tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER); 126 return tevent_req_post(req, ev); 127 } 123 128 } 124 129
Note:
See TracChangeset
for help on using the changeset viewer.