diff options
Diffstat (limited to 'Source/ccommand.cxx')
-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 ) { |