commit 9ebc93d44e79753dc36ff3f8867124843522cbba parent a398972e6b9d5e7e2151d9409f17beb972e61e2e Author: kyle <kyle@0x30.net> Date: Sat, 21 Jan 2017 14:16:59 -0700 inst: warn instead of error when utimes() fails - cmake's ABI probing routine hits this for unknown reason Diffstat:
M | inst_feunix.cc | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/inst_feunix.cc b/inst_feunix.cc @@ -93,9 +93,12 @@ InstFrontendUnix::copy_file(std::string const &dst_fn, std::string const &src_fn src.close(); dst.close(); - // Restore the original access and modification time + // + // Restore the original access and modification time, it's not critical + // if it fails. + // if (utimes(dst_fn.c_str(), st_tim) < 0) - err(1, "utimes"); + warn("utimes"); } bool