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/setuidgid.c | |
parent | f2859424cbdf23f6673fd4f3a9d7a5b197e0595e (diff) | |
download | coreutils-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/setuidgid.c')
-rw-r--r-- | src/setuidgid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setuidgid.c b/src/setuidgid.c index 34be5155a..0adac215c 100644 --- a/src/setuidgid.c +++ b/src/setuidgid.c @@ -181,7 +181,7 @@ main (int argc, char **argv) { int n = mgetgroups (pwd->pw_name, pwd->pw_gid, &gids); if (n <= 0) - error (1, errno, _("failed to get groups for user %s"), + error (EXIT_FAILURE, errno, _("failed to get groups for user %s"), quote (pwd->pw_name)); n_gids = n; } |