From: Jim Meyering Date: Sat, 26 Apr 2008 07:14:55 +0000 (+0200) Subject: chcon, runcon: make --help print the bug-reporting address X-Git-Tag: v6.12~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbc0cb0f37641b1779170b3e15bd3479fb250fed;p=thirdparty%2Fcoreutils.git chcon, runcon: make --help print the bug-reporting address * src/chcon.c (usage): Use emit_bug_reporting_address. * src/runcon.c (usage): Likewise. * tests/misc/help-version: Don't exempt chcon and runcon. * NEWS: Mention this. --- diff --git a/NEWS b/NEWS index 18d98518c2..faf2b1d761 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,8 @@ GNU coreutils NEWS -*- outline -*- ** Bug fixes + chcon, runcon: --help output now includes the bug-reporting address + id with no options now prints the SELinux context only when invoked with no USERNAME argument. diff --git a/src/chcon.c b/src/chcon.c index 4f091a304b..01bb4ad693 100644 --- a/src/chcon.c +++ b/src/chcon.c @@ -400,6 +400,7 @@ one takes effect.\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); + emit_bug_reporting_address (); } exit (status); } diff --git a/src/runcon.c b/src/runcon.c index 85e5f59b00..418860146c 100644 --- a/src/runcon.c +++ b/src/runcon.c @@ -85,6 +85,7 @@ With neither CONTEXT nor COMMAND, print the current security context.\n\ "), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); + emit_bug_reporting_address (); } exit (status); } diff --git a/tests/misc/help-version b/tests/misc/help-version index 25364dfd23..f383fa64de 100755 --- a/tests/misc/help-version +++ b/tests/misc/help-version @@ -47,8 +47,6 @@ for lang in C fr da; do # Skip `test'; it doesn't accept --help or --version. test $i = test && continue; - test $i = chcon && continue; - test $i = runcon && continue; # false fails even when invoked with --help or --version. if test $i = false; then