# HG changeset patch # User Olaf Wintermann # Date 1555832465 -7200 # Node ID c80d5730c00b386791e66753626e051a7ed8281b # Parent bb1e60fada74297f28ae9bea8461012a9ed4fe6b add check to detect changed link properties in dav-sync pull diff -r bb1e60fada74 -r c80d5730c00b dav/sync.c --- a/dav/sync.c Sat Apr 20 18:46:00 2019 +0200 +++ b/dav/sync.c Sun Apr 21 09:41:05 2019 +0200 @@ -598,6 +598,7 @@ UcxList *res_modified = NULL; UcxList *res_new = NULL; UcxList *res_moved = NULL; // type: MovedFile + UcxList *res_link; UcxList *res_conflict = NULL; UcxList *res_mkdir = NULL; UcxList *res_metadata = NULL; @@ -970,8 +971,11 @@ } else if(local) { DavBool nochange = FALSE; char *content_hash = sync_get_content_hash(res); + char *link = dav_get_string_property_ns(res, DAV_NS, "link"); - if(content_hash && local->hash) { + if(nullstrcmp(link, local->link_target)) { + ret = REMOTE_CHANGE_MODIFIED; + } else if(content_hash && local->hash) { if(!strcmp(content_hash, local->hash)) { nochange = TRUE; }