From a2e12c817e94a7fcb18f3caeacaa34ed7e5e70c7 Mon Sep 17 00:00:00 2001 From: Marcel Rodrigues Date: Mon, 10 Aug 2015 10:24:23 -0300 Subject: [PATCH] Fix lstat() == ENOENT in batch move. --- rover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rover.c b/rover.c index e8371c2..d6cb6ba 100644 --- a/rover.c +++ b/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) { -- 2.11.4.GIT