summaryrefslogtreecommitdiffstats
path: root/SystemTools.cxx
diff options
context:
space:
mode:
authorKWSys Robot <kwrobot@kitware.com>2015-02-27 16:12:18 (GMT)
committerBrad King <brad.king@kitware.com>2015-03-02 13:41:11 (GMT)
commit7c9afb573844fdef0a8c29bb7f8c4474b910d83f (patch)
tree234ba463e7fce5a9f61070bdcb1a11f13b8b12a0 /SystemTools.cxx
parent5e2b418f7b0083b01004910848eb4823ea014ec1 (diff)
downloadCMake-7c9afb573844fdef0a8c29bb7f8c4474b910d83f.zip
CMake-7c9afb573844fdef0a8c29bb7f8c4474b910d83f.tar.gz
CMake-7c9afb573844fdef0a8c29bb7f8c4474b910d83f.tar.bz2
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
Diffstat (limited to 'SystemTools.cxx')
-rw-r--r--SystemTools.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/SystemTools.cxx b/SystemTools.cxx
index bf6f458..8a481d6 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