[svn-r15871] Eliminate -c option and make that behavior the default and return 2 instead of -1 on error status

Tested: windows, linux
This commit is contained in:
Pedro Vicente Nunes
2008-10-15 11:10:15 -05:00
parent 122b938cbf
commit b353fb8b5a
23 changed files with 53 additions and 151 deletions

View File

@@ -84,17 +84,17 @@ int main(int argc, const char *argv[])
/*-------------------------------------------------------------------------
* exit code
* 1 if differences, 0 if no differences, -1 if error
* 1 if differences, 0 if no differences, 2 if error
*-------------------------------------------------------------------------
*/
ret = (nfound == 0 ? 0 : 1 );
if ( options.m_contents && options.contents == 0 )
if ( options.contents == 0 )
ret = 1;
if(options.err_stat)
ret = -1;
ret = 2;
return ret;
}