362 if(set_session_config(sn, a)) { |
362 if(set_session_config(sn, a)) { |
363 return -1; |
363 return -1; |
364 } |
364 } |
365 |
365 |
366 char *update = cmd_getoption(a, "update"); |
366 char *update = cmd_getoption(a, "update"); |
367 time_t t = 1; |
367 time_t t = -1; |
368 if(update) { |
368 if(update) { |
369 t = util_parse_lastmodified(update); |
369 t = util_parse_lastmodified(update); |
370 } |
370 } |
371 |
371 |
372 int depth = cmd_getoption(a, "recursive") ? -1 : 1; |
372 int depth = cmd_getoption(a, "recursive") ? -1 : 1; |
373 int ret = -1; |
373 int ret = -1; |
374 DavResource *ls; |
374 DavResource *ls; |
375 while(ret != 0) { |
375 while(ret != 0) { |
376 /* |
|
377 ls = dav_query( |
376 ls = dav_query( |
378 sn, |
377 sn, |
379 "select `idav:crypto-name`,`idav:crypto-key` from %s with depth = %d where lastmodified > %t", |
378 "select `idav:crypto-name`,`idav:crypto-key` from %s with depth = %d where lastmodified > %t", |
380 path, |
379 path, |
381 depth, |
380 depth, |
382 t); |
381 t); |
383 */ |
|
384 ls = dav_query(sn, "select * from %s", path); |
|
385 |
382 |
386 if(!ls) { |
383 if(!ls) { |
387 if(sn->error == DAV_UNAUTHORIZED) { |
384 if(sn->error == DAV_UNAUTHORIZED) { |
388 if(request_auth(repo, sn)) { |
385 if(request_auth(repo, sn)) { |
389 continue; |
386 continue; |