fix move

Sun, 07 Apr 2019 14:08:45 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 07 Apr 2019 14:08:45 +0200
changeset 553
891823d8dd7b
parent 552
e1a12762bf0a
child 554
ebac6e1ac190

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)++;
         

mercurial