summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmSystemTools.cxx11
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;
}