Changeset 497 for branches/client-2.0/src/smbwrp.c
- Timestamp:
- Dec 13, 2010, 4:05:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-2.0/src/smbwrp.c
r493 r497 1081 1081 finfo->ctime = def_finfo.ctime_ts.tv_sec; 1082 1082 strncpy(finfo->fname, def_finfo.name, sizeof(finfo->fname) - 1); 1083 debuglocal(9,"fname %s (serverzone %d, level %d)\n",finfo->fname, cli->serverzone, level);1084 1083 1085 1084 switch (level) { … … 1240 1239 pstrcpy(mask,Mask); 1241 1240 1241 /* Try to get the listing from cache. */ 1242 if (dircache_list_files(fn, state, &total_received)) 1243 { 1244 /* Got from cache. */ 1245 return(total_received); 1246 } 1247 1242 1248 while (ff_eos == 0) { 1243 1249 loop_count++; … … 1425 1431 total_received = -1; 1426 1432 } else { 1433 void *dircachectx = dircache_write_begin(state, total_received); 1434 1427 1435 /* no connection problem. let user function add each entry */ 1428 1436 for (p=dirlist,i=0;i<total_received;i++) { … … 1430 1438 &finfo,NULL,NULL,NULL); 1431 1439 fn( mnt,&finfo, Mask, state ); 1440 1441 /* Also add the entry to the cache. */ 1442 dircache_write_entry(dircachectx, &finfo); 1432 1443 } 1444 1445 dircache_write_end(dircachectx); 1433 1446 } 1434 1447
Note:
See TracChangeset
for help on using the changeset viewer.