diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-03-19 17:25:15 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-03-19 17:25:15 (GMT) |
commit | 2990c3db571a29a00fc59b5c572d5aa6cbe8d117 (patch) | |
tree | db82cdeff213177cab19cfc082e2d941a1a7d28e /Source | |
parent | f15cce92f4a7b2138dd936c1c9a69bf6dc048e28 (diff) | |
download | CMake-2990c3db571a29a00fc59b5c572d5aa6cbe8d117.zip CMake-2990c3db571a29a00fc59b5c572d5aa6cbe8d117.tar.gz CMake-2990c3db571a29a00fc59b5c572d5aa6cbe8d117.tar.bz2 |
Return error on copy
Diffstat (limited to 'Source')
-rw-r--r-- | Source/ccommand.cxx | 2 |
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 ) { |