From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <456E06BE.1030007@redhat.com> Date: Wed, 29 Nov 2006 17:16:30 -0500 From: Daniel J Walsh MIME-Version: 1.0 To: Stephen Smalley , Joshua Brindle , SE Linux Subject: Patch to load_policy to enforce quiet option Content-Type: multipart/mixed; boundary="------------020701090303000608030900" Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov This is a multi-part message in MIME format. --------------020701090303000608030900 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------020701090303000608030900 Content-Type: text/x-patch; name="load_policy-quiet.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="load_policy-quiet.patch" 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++]); --------------020701090303000608030900-- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.