Commit 7a49a0ce authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

BUG: Return proper values

parent 5d1000e6
......@@ -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;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment