diff -r 54819e984a19 -r 9ca1e4706acc dav/sync.c --- a/dav/sync.c Thu Oct 12 20:37:46 2017 +0200 +++ b/dav/sync.c Sun Oct 22 12:58:07 2017 +0200 @@ -376,7 +376,7 @@ continue; } - char *status = dav_get_property(res, "idav:status"); + char *status = dav_get_string_property(res, "idav:status"); if(status && !strcmp(status, "broken")) { res = res->next; continue; @@ -498,7 +498,7 @@ LocalResource *local = ucx_map_cstr_get(db->resources, res->path); char *local_path = util_concat_path(dir->path, res->path); - char *etag = dav_get_property(res, "D:getetag"); + char *etag = dav_get_string_property(res, "D:getetag"); struct stat s; memset(&s, 0, sizeof(struct stat)); if(local && !res->iscollection) { @@ -1180,7 +1180,7 @@ DavResource *remote = dav_get(sn, res->path, "D:getetag"); int ret = 0; if(remote) { - char *etag = dav_get_property(remote, "D:getetag"); + char *etag = dav_get_string_property(remote, "D:getetag"); if(!res->etag) { // the resource is on the server and the client has no etag ret = 1; @@ -1274,7 +1274,7 @@ sync_set_status(res, "broken"); } else { // everything seems fine, we can update the local resource - char *etag = dav_get_property(up_res, "D:getetag"); + char *etag = dav_get_string_property(up_res, "D:getetag"); if(etag) { if(strlen(etag) > 2 && etag[0] == 'W' && etag[1] == '/') { etag = etag + 2; @@ -1291,7 +1291,7 @@ local->etag = NULL; } - if(dav_get_property(up_res, "idav:status")) { + if(dav_get_string_property(up_res, "idav:status")) { sync_remove_status(up_res); } @@ -1340,7 +1340,7 @@ fprintf(stderr, "Cannot delete resource %s\n", res->path); } } else { - char *etag = dav_get_property(res, "D:getetag"); + char *etag = dav_get_string_property(res, "D:getetag"); if(etag) { if(strlen(etag) > 2 && etag[0] == 'W' && etag[1] == '/') { etag = etag + 2;