dav/main.c

changeset 211
3d12817414e9
parent 210
1d19e0ff18d9
child 212
01e80c7cfe96
equal deleted inserted replaced
210:1d19e0ff18d9 211:3d12817414e9
357 int ret = -1; 357 int ret = -1;
358 DavResource *ls; 358 DavResource *ls;
359 while(ret != 0) { 359 while(ret != 0) {
360 ls = dav_query( 360 ls = dav_query(
361 sn, 361 sn,
362 "select `idav:crypto-name`,`idav:crypto-key` from %s with depth = %d where lastmodified > %t order by iscollection desc, name", 362 "select `idav:crypto-name`,`idav:crypto-key`,D:lockdiscovery from %s with depth = %d where lastmodified > %t order by iscollection desc, name",
363 path, 363 path,
364 depth, 364 depth,
365 t); 365 t);
366 366
367 if(!ls) { 367 if(!ls) {
495 return; 495 return;
496 } 496 }
497 497
498 char flags[16]; 498 char flags[16];
499 memset(flags, '-', 15); 499 memset(flags, '-', 15);
500 flags[2] = '\0'; 500 flags[3] = '\0';
501 501
502 int type_width = 0; 502 int type_width = 0;
503 char *type = res->contenttype; 503 char *type = res->contenttype;
504 504
505 if(res->iscollection) { 505 if(res->iscollection) {
510 res, 510 res,
511 DAV_NS, 511 DAV_NS,
512 "crypto-key"); 512 "crypto-key");
513 if(keyprop) { 513 if(keyprop) {
514 flags[1] = 'c'; 514 flags[1] = 'c';
515 }
516 if(dav_get_property(res, "D:lockdiscovery")) {
517 flags[2] = 'l';
515 } 518 }
516 519
517 if(cmd_getoption(a, "type")) { 520 if(cmd_getoption(a, "type")) {
518 type_width = 20; 521 type_width = 20;
519 } 522 }

mercurial