Changeset 110 for branches/samba-3.0/source/ndpsmb/smbwrp.c
- Timestamp:
- Jan 21, 2008, 9:55:43 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/ndpsmb/smbwrp.c
r107 r110 1027 1027 if (!finfo) finfo = &finfo1; 1028 1028 1029 // memcpy(finfo,&def_finfo,sizeof(*finfo));1030 1029 finfo->attr = def_finfo.mode; 1031 1030 finfo->mtime = def_finfo.mtime_ts.tv_sec; … … 1162 1161 smbwrp_fileinfo finfo; 1163 1162 int i; 1164 char * tdl, *dirlist = NULL;1163 char *dirlist = NULL; 1165 1164 int dirlist_len = 0; 1166 1165 int total_received = -1; … … 1168 1167 int ff_searchcount=0; 1169 1168 int ff_eos=0; 1170 //int ff_lastname=0;1171 1169 int ff_dir_handle=0; 1172 1170 int loop_count = 0; … … 1181 1179 1182 1180 /* 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; 1184 1182 1185 1183 debuglocal(4,"list_files level %d. mask <%s>\n", info_level, mask); … … 1204 1202 SSVAL(param,0,attribute); /* attribute */ 1205 1203 SSVAL(param,2,max_matches); /* max count */ 1206 //SSVAL(param,4,4+2); /* resume required + close on end */1207 1204 SSVAL(param,4,(FLAG_TRANS2_FIND_REQUIRE_RESUME|FLAG_TRANS2_FIND_CLOSE_IF_END)); /* resume required + close on end */ 1208 1205 SSVAL(param,6,info_level); … … 1215 1212 SSVAL(param,0,ff_dir_handle); 1216 1213 SSVAL(param,2,max_matches); /* max count */ 1217 //SIVAL(param,6,0); /* ff_resume_key */1218 1214 SSVAL(param,4,info_level); 1219 1215 /* For W2K servers serving out FAT filesystems we *must* set the … … 1223 1219 can miss filenames. Use last filename continue instead. JRA */ 1224 1220 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 */1226 1221 p = param+12; 1227 //p += clistr_push(cli, param+12, mask, sizeof(param)-12,1228 // STR_TERMINATE);1229 1222 if (last_name_raw_len && (last_name_raw_len < (sizeof(param)-12))) { 1230 1223 memcpy(p, last_name_raw.data, last_name_raw_len); … … 1236 1229 1237 1230 param_len = PTR_DIFF(p, param); 1231 1238 1232 if (!cli_send_trans(cli, SMBtrans2, 1239 1233 NULL, /* Name */ … … 1271 1265 } 1272 1266 1273 1274 1267 if (cli_is_error(cli) || !rdata || !rparam) 1275 1268 { … … 1295 1288 ff_searchcount = SVAL(p,2); 1296 1289 ff_eos = SVAL(p,4); 1297 //ff_lastname = SVAL(p,8);1298 1290 } else { 1299 1291 ff_searchcount = SVAL(p,0); 1300 1292 ff_eos = SVAL(p,2); 1301 //ff_lastname = SVAL(p,6);1302 1293 } 1303 1294 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.