All of lore.kernel.org
 help / color / mirror / Atom feed
* Patch to load_policy to enforce quiet option
@ 2006-11-29 22:16 Daniel J Walsh
  2006-11-30 16:23 ` Joshua Brindle
  2007-01-03 16:15 ` Karl MacMillan
  0 siblings, 2 replies; 6+ messages in thread
From: Daniel J Walsh @ 2006-11-29 22:16 UTC (permalink / raw)
  To: Stephen Smalley, Joshua Brindle, SE Linux

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: load_policy-quiet.patch --]
[-- Type: text/x-patch, Size: 1076 bytes --]

diff --exclude-from=exclude --exclude POTFILES.in --exclude='*.po' --exclude='*.pot' -N -u -r nsapolicycoreutils/load_policy/load_policy.c policycoreutils-1.33.5/load_policy/load_policy.c
--- nsapolicycoreutils/load_policy/load_policy.c	2006-11-16 17:14:31.000000000 -0500
+++ policycoreutils-1.33.5/load_policy/load_policy.c	2006-11-28 10:44:25.000000000 -0500
@@ -50,12 +50,12 @@
 	nargs = argc - optind;
 	if (nargs > 2)
 		usage(argv[0]);
-	if (nargs >= 1) {
-		fprintf(stderr,
-			"%s:  Warning!  Policy file argument (%s) is no longer supported, installed policy is always loaded.  Continuing...\n",
-			argv[0], argv[optind++]);
+	if (nargs >= 1 && !quiet) {
+			fprintf(stderr,
+				"%s:  Warning!  Policy file argument (%s) is no longer supported, installed policy is always loaded.  Continuing...\n",
+				argv[0], argv[optind++]);
 	}
-	if (nargs == 2) {
+	if (nargs == 2 && ! quiet) {
 		fprintf(stderr,
 			"%s:  Warning!  Boolean file argument (%s) is no longer supported, installed booleans file is always used.  Continuing...\n",
 			argv[0], argv[optind++]);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-01-03 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-29 22:16 Patch to load_policy to enforce quiet option Daniel J Walsh
2006-11-30 16:23 ` Joshua Brindle
2006-11-30 16:57   ` Daniel J Walsh
2006-12-06 17:16     ` Karl MacMillan
2006-12-12 18:01       ` Stephen Smalley
2007-01-03 16:15 ` Karl MacMillan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.