diff options
author | Brad King <brad.king@kitware.com> | 2015-03-02 13:55:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-02 13:55:21 (GMT) |
commit | eb3bced50fe7da40015a1d32dae96f0abf401ff6 (patch) | |
tree | 6ade9e2a8b008d2a9cadfd3d326dec07c2b6532d | |
parent | 6b6852a0ebe6d2c05ea500f78349e4fdbadcecd9 (diff) | |
parent | b8ea771b13989f353c2762abd40a65b6d33a1eb7 (diff) | |
download | CMake-eb3bced50fe7da40015a1d32dae96f0abf401ff6.zip CMake-eb3bced50fe7da40015a1d32dae96f0abf401ff6.tar.gz CMake-eb3bced50fe7da40015a1d32dae96f0abf401ff6.tar.bz2 |
Merge branch 'backport-KWSys-SystemTools-CopyFileAlways-fix' into release
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 2708211..b03e7b0 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -2330,6 +2330,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 |