From faab08a3aa46e0b497ef3b29dceb7fbc2ae43660 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 15 Jun 2018 16:51:21 +0800 Subject: [PATCH] src/strip.vala --- src/strip.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/strip.vala b/src/strip.vala index 3568a5f..fbe4246 100644 --- a/src/strip.vala +++ b/src/strip.vala @@ -851,11 +851,12 @@ public class Strip : GLib.Object { Posix.unlink(path +"/" + name); GLib.debug("copy tmp file %s to %s" , tmpfile, path +"/" + name); Posix.link(tmpfile, path +"/" + name); - Posix.unlink(tmpfile); + var nf = File.new_for_path(path +"/" + name); var newfileinfo = nf.query_info(GLib.FileAttribute.TIME_MODIFIED,GLib.FileQueryInfoFlags.NONE,null); newfileinfo.set_modification_time(mod_time); nf.set_attributes_from_info(newfileinfo,FileQueryInfoFlags.NONE); + Posix.unlink(tmpfile); } this.processed++; -- 2.39.2