Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
7a49a0ce
Commit
7a49a0ce
authored
Dec 28, 2005
by
Andy Cedilnik
Browse files
BUG: Return proper values
parent
5d1000e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmSystemTools.cxx
View file @
7a49a0ce
...
...
@@ -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
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment