Ignore:
Timestamp:
Jan 21, 2008, 9:55:43 AM (18 years ago)
Author:
Paul Smedley
Message:

Check in updated detection of kerberos support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/ndpsmb/smbwrp.c

    r107 r110  
    10271027        if (!finfo) finfo = &finfo1;
    10281028
    1029 //      memcpy(finfo,&def_finfo,sizeof(*finfo));
    10301029        finfo->attr = def_finfo.mode;
    10311030        finfo->mtime = def_finfo.mtime_ts.tv_sec;
     
    11621161        smbwrp_fileinfo finfo;
    11631162        int i;
    1164         char *tdl, *dirlist = NULL;
     1163        char *dirlist = NULL;
    11651164        int dirlist_len = 0;
    11661165        int total_received = -1;
     
    11681167        int ff_searchcount=0;
    11691168        int ff_eos=0;
    1170         //int ff_lastname=0;
    11711169        int ff_dir_handle=0;
    11721170        int loop_count = 0;
     
    11811179
    11821180        /* NT uses 260, OS/2 uses 2. Both accept 1. */
    1183         info_level = (cli->capabilities&CAP_NT_SMBS)?260:2;
     1181        info_level = (cli->capabilities&CAP_NT_SMBS)?260:2; 
    11841182
    11851183        debuglocal(4,"list_files level %d. mask <%s>\n", info_level, mask);
     
    12041202                        SSVAL(param,0,attribute); /* attribute */
    12051203                        SSVAL(param,2,max_matches); /* max count */
    1206                         //SSVAL(param,4,4+2);   /* resume required + close on end */
    12071204                        SSVAL(param,4,(FLAG_TRANS2_FIND_REQUIRE_RESUME|FLAG_TRANS2_FIND_CLOSE_IF_END)); /* resume required + close on end */
    12081205                        SSVAL(param,6,info_level);
     
    12151212                        SSVAL(param,0,ff_dir_handle);
    12161213                        SSVAL(param,2,max_matches); /* max count */
    1217                         //SIVAL(param,6,0); /* ff_resume_key */
    12181214                        SSVAL(param,4,info_level);
    12191215                        /* For W2K servers serving out FAT filesystems we *must* set the
     
    12231219                           can miss filenames. Use last filename continue instead. JRA */
    12241220                        SSVAL(param,10,(FLAG_TRANS2_FIND_REQUIRE_RESUME|FLAG_TRANS2_FIND_CLOSE_IF_END));        /* resume required + close on end */
    1225                         //SSVAL(param,10,8+4+2);        /* continue + resume required + close on end */
    12261221                        p = param+12;
    1227                         //p += clistr_push(cli, param+12, mask, sizeof(param)-12,
    1228                         //               STR_TERMINATE);
    12291222                        if (last_name_raw_len && (last_name_raw_len < (sizeof(param)-12))) {
    12301223                                memcpy(p, last_name_raw.data, last_name_raw_len);
     
    12361229
    12371230                param_len = PTR_DIFF(p, param);
     1231
    12381232                if (!cli_send_trans(cli, SMBtrans2,
    12391233                                    NULL,                   /* Name */
     
    12711265                }
    12721266
    1273 
    12741267                if (cli_is_error(cli) || !rdata || !rparam)
    12751268                {
     
    12951288                        ff_searchcount = SVAL(p,2);
    12961289                        ff_eos = SVAL(p,4);
    1297                         //ff_lastname = SVAL(p,8);
    12981290                } else {
    12991291                        ff_searchcount = SVAL(p,0);
    13001292                        ff_eos = SVAL(p,2);
    1301                         //ff_lastname = SVAL(p,6);
    13021293                }
    13031294                debuglocal(4,"list_files %d %d %d %d\n", ff_searchcount, ff_eos, "(ff_lastname)", First);
Note: See TracChangeset for help on using the changeset viewer.