summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-16 13:51:20 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-16 13:54:08 (GMT)
commit24367563d7db154c6a3690c9e95f2c78ac0438e8 (patch)
treeaea0659b853964699a5aae00c6419eb09f14d67f /Source/kwsys/SystemTools.cxx
parentc698dbd45d0f51b5b13d728a2216308c6a11478e (diff)
parent1e0a2e93775c8d3b6b81b82d285986ad2f9d1cf1 (diff)
downloadCMake-24367563d7db154c6a3690c9e95f2c78ac0438e8.zip
CMake-24367563d7db154c6a3690c9e95f2c78ac0438e8.tar.gz
CMake-24367563d7db154c6a3690c9e95f2c78ac0438e8.tar.bz2
Merge branch 'upstream-KWSys' into update-kwsys
* upstream-KWSys: KWSys 2018-05-15 (5f757898) Fixes: #16001
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 52f509a..7167527 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -2282,7 +2282,9 @@ bool SystemTools::CopyADirectory(const std::string& source,
const std::string& destination, bool always)
{
Directory dir;
- dir.Load(source);
+ if (dir.Load(source) == 0) {
+ return false;
+ }
size_t fileNum;
if (!SystemTools::MakeDirectory(destination)) {
return false;