PERFORCE change 77720 for review

Tom Rhodes trhodes at FreeBSD.org
Mon May 30 16:00:20 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=77720

Change 77720 by trhodes at trhodes_local on 2005/05/30 16:00:03

	If no options are passed to auditreduce, print the usage message
	instead of silently failing and returning to the shell prompt.
	I would like to rework this usage message, but not right now.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#2 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/bin/auditreduce/auditreduce.c#2 (text+ko) ====

@@ -682,6 +682,9 @@
 		}
 	}
 
+	if (optind + 2 != argc)
+		usage("Unknown option");
+
 	/* For each of the files passed as arguments dump the contents */
 	if(optind == argc) {
 		// XXX should look in the default directory for audit trail files
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list