diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 21:44:32 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-12-28 21:44:32 (GMT) |
commit | 7a49a0ce4afaf1a6ee8beb584e53937def461c16 (patch) | |
tree | 40aa4f62402d4fd2a35b31bec9624a69f58d5082 /Source | |
parent | 5d1000e68cc268496582b1939759f5c2ccbe1c42 (diff) | |
download | CMake-7a49a0ce4afaf1a6ee8beb584e53937def461c16.zip CMake-7a49a0ce4afaf1a6ee8beb584e53937def461c16.tar.gz CMake-7a49a0ce4afaf1a6ee8beb584e53937def461c16.tar.bz2 |
BUG: Return proper values
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmSystemTools.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index bc350cd..a961d92 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1379,7 +1379,7 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdSt | 0) == -1) { fprintf(stderr, "tar_open(): %s\n", strerror(errno)); - return -1; + return false; } std::vector<cmStdString>::const_iterator it; @@ -1395,7 +1395,7 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdSt "tar_append_tree(\"%s\", \"%s\"): %s\n", buf, pathname, strerror(errno)); tar_close(t); - return -1; + return false; } } @@ -1403,14 +1403,13 @@ bool cmSystemTools::CreateTar(const char* outFileName, const std::vector<cmStdSt { fprintf(stderr, "tar_append_eof(): %s\n", strerror(errno)); tar_close(t); - return -1; + return false; } if (tar_close(t) != 0) { fprintf(stderr, "tar_close(): %s\n", strerror(errno)); - return -1; + return false; } - std::cout << "CreateTar: " << outFileName << std::endl; - return false; + return true; } |