From 5f8d5754abaef0313c9dadb3a6f5b455c62cffa3 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 13 Feb 2019 14:55:17 +0100 Subject: [PATCH] transport: rename file instead of calling mv Signed-off-by: Tobias Ulmer --- generic/transport.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generic/transport.lua b/generic/transport.lua index 2272e63..4779820 100644 --- a/generic/transport.lua +++ b/generic/transport.lua @@ -247,7 +247,7 @@ function transport.fetch_file(surl, location, destdir, destname) end -- Move the file into place atomically. This may fail when the copy -- operation above failed silently (looking at rsync here). - rc, re = e2lib.mv(tmpfile_path, e2lib.join(destdir, destname)) + rc, re = e2lib.rename(tmpfile_path, e2lib.join(destdir, destname)) if not rc then return false, e:cat(re) end -- 2.39.5