From 7c9afb573844fdef0a8c29bb7f8c4474b910d83f Mon Sep 17 00:00:00 2001 From: KWSys Robot Date: Fri, 27 Feb 2015 11:12:18 -0500 Subject: [PATCH] KWSys 2015-02-27 (d2aa1afd) Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ d2aa1afd | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 1b75ad3d..d2aa1afd Paul Martin (1): d2aa1afd SystemTools: Update CopyFileAlways stream library workarounds Change-Id: I676f2f11ac0d52f7ffc3af5bb444d3726c121be0 --- SystemTools.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SystemTools.cxx b/SystemTools.cxx index bf6f458e1..8a481d654 100644 --- a/SystemTools.cxx +++ b/SystemTools.cxx @@ -2375,6 +2375,10 @@ bool SystemTools::CopyFileAlways(const kwsys_stl::string& source, const kwsys_st { fout.write(buffer, fin.gcount()); } + else + { + break; + } } // Make sure the operating system has finished writing the file