From 2990c3db571a29a00fc59b5c572d5aa6cbe8d117 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 19 Mar 2002 12:25:15 -0500 Subject: [PATCH] Return error on copy --- Source/ccommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ccommand.cxx b/Source/ccommand.cxx index ff7ae95b4..7cc560049 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 ) {