Ignore:
Timestamp:
Nov 12, 2012, 5:38:52 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/libsmb/clireadwrite.c

    r733 r736  
    8989        struct tevent_req *req, *subreq;
    9090        struct cli_read_andx_state *state;
    91         bool bigoffset = False;
    9291        uint8_t wct = 10;
    9392
     
    116115        SSVAL(state->vwv + 9, 0, 0);
    117116
    118         if ((uint64_t)offset >> 32) {
    119                 bigoffset = true;
     117        if (cli->capabilities & CAP_LARGE_FILES) {
    120118                SIVAL(state->vwv + 10, 0,
    121119                      (((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                }
    123128        }
    124129
Note: See TracChangeset for help on using the changeset viewer.