Sun, 07 Apr 2019 14:08:45 +0200
fix move
dav/sync.c | file | annotate | diff | comparison | revisions |
--- a/dav/sync.c Sun Apr 07 13:08:50 2019 +0200 +++ b/dav/sync.c Sun Apr 07 14:08:45 2019 +0200 @@ -1730,6 +1730,10 @@ } DavBool copy = TRUE; + if(!ls_copy) { + copy = FALSE; + ls_copy = ls_move; + } for(UcxList *elm=ls_copy;elm && !sync_shutdown;elm=elm->next) { LocalResource *local = elm->data; @@ -3435,7 +3439,7 @@ free(local_origin); // only free origin pointer // get new etag - DavResource *up_res = dav_get(origin->session, origin->path, "D:getetag"); + DavResource *up_res = dav_get(origin->session, local->path, "D:getetag"); if(up_res) { (*counter)++;