summaryrefslogtreecommitdiff
path: root/lib
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 /lib
parentf2859424cbdf23f6673fd4f3a9d7a5b197e0595e (diff)
downloadcoreutils-17b7d09bf2320c9a8addabae7049ed5431553bd1.tar.gz
coreutils-17b7d09bf2320c9a8addabae7049ed5431553bd1.tar.bz2
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 'lib')
-rw-r--r--lib/euidaccess-stat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/euidaccess-stat.c b/lib/euidaccess-stat.c
index 3d0897bf7..04cb37371 100644
--- a/lib/euidaccess-stat.c
+++ b/lib/euidaccess-stat.c
@@ -130,6 +130,6 @@ main (int argc, char **argv)
ok = euidaccess_stat (&st, mode);
printf ("%s: %s\n", file, ok ? "y" : "n");
- exit (0);
+ return 0;
}
#endif