diff -r 92bf06a65d08 -r a8117c4feaad dav/sync.c --- a/dav/sync.c Sat Oct 26 12:40:35 2019 +0200 +++ b/dav/sync.c Sat Oct 26 14:55:53 2019 +0200 @@ -845,6 +845,7 @@ } } + // update metadata UCX_FOREACH(elm, res_metadata) { DavResource *res = elm->data; if(sync_shutdown) { @@ -1319,6 +1320,8 @@ LocalResource *local = NULL; if(copy) { + // TODO: maybe we should not copy the whole resource + // with all metadata hashes local = local_resource_copy(content, res->path); } else { // reuse previous LocalResource (content) @@ -3362,6 +3365,8 @@ } if(!store_tags) { + nullfree(local->remote_tags_hash); + local->remote_tags_hash = remote_hash; return 0; }