Commit Diff


commit - 211041b67c14326eabd70c13aa0eb5fb4c6dcef8
commit + a2e12c817e94a7fcb18f3caeacaa34ed7e5e70c7
blob - e8371c245f1f182b37fbd43ec523e34fc966843a
blob + d6cb6bab671bf7885ee857b6afb82ef6b5bbfabd
--- rover.c
+++ rover.c
@@ -811,7 +811,7 @@ static int movfile(const char *srcpath) {
     strcat(dstpath, srcpath + strlen(rover.marks.dirpath));
     ret = rename(srcpath, dstpath);
     if (ret == 0) {
-        ret = lstat(srcpath, &st);
+        ret = lstat(dstpath, &st);
         if (ret < 0) return ret;
         update_progress(st.st_size);
     } else if (errno == EXDEV) {