diff options
author | KWSys Upstream <kwrobot@kitware.com> | 2018-05-15 12:52:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-05-16 13:51:17 (GMT) |
commit | 1e0a2e93775c8d3b6b81b82d285986ad2f9d1cf1 (patch) | |
tree | 93b82ec53fed127065362bd8d8513d99489f4336 /SystemTools.cxx | |
parent | 55efd14733a8ad6bfeebcd661f85d312eeaa409d (diff) | |
download | CMake-1e0a2e93775c8d3b6b81b82d285986ad2f9d1cf1.zip CMake-1e0a2e93775c8d3b6b81b82d285986ad2f9d1cf1.tar.gz CMake-1e0a2e93775c8d3b6b81b82d285986ad2f9d1cf1.tar.bz2 |
KWSys 2018-05-15 (5f757898)
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit 5f757898119974aa30f700d5c38928ee48407320 (master).
Upstream Shortlog
-----------------
Marian Klymov (1):
d06fcab7 SystemTools: Check source directory in CopyADirectory
Diffstat (limited to 'SystemTools.cxx')
-rw-r--r-- | SystemTools.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/SystemTools.cxx b/SystemTools.cxx index 52f509a..7167527 100644 --- a/SystemTools.cxx +++ b/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; |