diff options
| author | Eric Blake <ebb9@byu.net> | 2009-10-29 06:37:38 -0600 |
|---|---|---|
| committer | Eric Blake <ebb9@byu.net> | 2009-10-29 07:31:23 -0600 |
| commit | 17b7d09bf2320c9a8addabae7049ed5431553bd1 (patch) | |
| tree | c1db8a4278ff57c1525165c1a316030a6efe4eb1 /src/runcon.c | |
| parent | build (--enable-gcc-warnings): enable gcc's -Werror also in lib/ (diff) | |
| download | coreutils-17b7d09bf2320c9a8addabae7049ed5431553bd1.tar.gz coreutils-17b7d09bf2320c9a8addabae7049ed5431553bd1.zip | |
maint: avoid exiting with magic number
Cope with gnulib's new sc_prohibit_magic_number_exit rule.
* .x-sc_prohibit_magic_number_exit: New file, to add exemptions.
* Makefile.am (syntax_check_exceptions): Distribute it.
* lib/euidaccess-stat.c (main): Fix culprits.
* src/chcon.c (main): Likewise.
* src/runcon.c (main): Likewise.
* src/setuidgid.c (main): Likewise.
Diffstat (limited to 'src/runcon.c')
| -rw-r--r-- | src/runcon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runcon.c b/src/runcon.c index f87eada6a..263737316 100644 --- a/src/runcon.c +++ b/src/runcon.c @@ -182,7 +182,7 @@ main (int argc, char **argv) if (optind >= argc) { error (0, 0, _("you must specify -c, -t, -u, -l, -r, or context")); - usage (1); + usage (EXIT_FAILURE); } context = argv[optind++]; } @@ -190,7 +190,7 @@ main (int argc, char **argv) if (optind >= argc) { error (0, 0, _("no command specified")); - usage (1); + usage (EXIT_FAILURE); } if (is_selinux_enabled () != 1) |
