File:  [MW Coherent from dump] / coherent / d / bin / uucheck / uucheckname / main.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:39 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/* uucheckname
 * Synopsis:
 * checkperms [-s] [-v]
 *  -s	silent
 *  -v	verbose
 * 
 * Return values:
 * 0 on no errors or warnings
 * 1 if there was at least one warning
 * 2 if there was an error
 *
 * $ uucheckname -errors -warnings 9
 * ...or equivalently...
 * $ uucheckname
 */

#define MAIN
#include "uucheck.h"
#include "uucheckname.h"
#undef MAIN

main(argc, argv)
	int argc;	
	char *argv[];
{
	warning = FALSE;
	error = FALSE;

	parse_args(argc, argv);
	
	uucheckname();

	if (!error && !warning) {
		VERBOSE("Site name is OK.\n");
	} /* if no errors or warnings  */

	/* Set the correct exit value.  */
	/* 2 on error, 1 on warning only, 0 on no failures */
	EXIT;
} /* main() */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.