summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-03-19 17:25:15 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-03-19 17:25:15 (GMT)
commit2990c3db571a29a00fc59b5c572d5aa6cbe8d117 (patch)
treedb82cdeff213177cab19cfc082e2d941a1a7d28e
parentf15cce92f4a7b2138dd936c1c9a69bf6dc048e28 (diff)
downloadCMake-2990c3db571a29a00fc59b5c572d5aa6cbe8d117.zip
CMake-2990c3db571a29a00fc59b5c572d5aa6cbe8d117.tar.gz
CMake-2990c3db571a29a00fc59b5c572d5aa6cbe8d117.tar.bz2
Return error on copy
-rw-r--r--Source/ccommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/ccommand.cxx b/Source/ccommand.cxx
index ff7ae95..7cc5600 100644
--- a/Source/ccommand.cxx
+++ b/Source/ccommand.cxx
@@ -45,7 +45,7 @@ int main(int ac, char** av)
if ( args[1] == "copy" && args.size() == 4 )
{
cmSystemTools::cmCopyFile(args[2].c_str(), args[3].c_str());
- return 0;
+ return cmSystemTools::GetErrorOccuredFlag();
}
if ( args[1] == "remove" && args.size() > 2 )
{