summaryrefslogtreecommitdiff
path: root/src/runcon.c
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-29 06:37:38 -0600
committerEric Blake <ebb9@byu.net>2009-10-29 07:31:23 -0600
commit17b7d09bf2320c9a8addabae7049ed5431553bd1 (patch)
treec1db8a4278ff57c1525165c1a316030a6efe4eb1 /src/runcon.c
parentf2859424cbdf23f6673fd4f3a9d7a5b197e0595e (diff)
downloadcoreutils-17b7d09bf2320c9a8addabae7049ed5431553bd1.tar.xz
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.c4
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)