citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 39a920366078e314e20751ff487bf031d1076746
parent 8f23933273dc2829f9c6eb084b8198a6d8819a45
Author: Kyle Milz <kyle@getaddrinfo.net>
Date:   Fri, 10 Jun 2016 01:50:30 -0600

src: close file before changing access/modification times

Diffstat:
Msrc/inst_main.cc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/inst_main.cc b/src/inst_main.cc @@ -124,6 +124,9 @@ copy_file(std::string dst_fn, std::string src_fn) dst << src.rdbuf(); + src.close(); + dst.close(); + utimes(dst_fn.c_str(), st_tim); }