]> git.e2factory.org Git - e2factory.git/commitdiff
transport: rename file instead of calling mv
authorTobias Ulmer <tu@emlix.com>
Wed, 13 Feb 2019 13:55:17 +0000 (14:55 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 13 Feb 2019 13:55:17 +0000 (14:55 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/transport.lua

index 2272e63cf089a36dc23910d51c9f4f801b1aab12..4779820503cd911cf35187fa1600b55ef9fa8416 100644 (file)
@@ -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