diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-06-20 15:49:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-06-20 15:49:08 +0000 |
commit | 64d64de628376b21e8eb29bdc9ef6a3651793aef (patch) | |
tree | e91fa4027fe4402d6359129f26f43081d579267a /nscd/nscd.c | |
parent | 24c709d1af1d603e310645b1305bb77448d69e20 (diff) | |
download | glibc-64d64de628376b21e8eb29bdc9ef6a3651793aef.zip glibc-64d64de628376b21e8eb29bdc9ef6a3651793aef.tar.gz glibc-64d64de628376b21e8eb29bdc9ef6a3651793aef.tar.bz2 |
* nscd/nscd.init: Get more in line with lsb3.cvs/fedora-glibc-20050620T1530cvs/fedora-glibc-20050620T1522
* nscd/nscd.c: Adjust some error codes to fit in better with lsb3.
* nscd/connections.c: Likewise.
Diffstat (limited to 'nscd/nscd.c')
-rw-r--r-- | nscd/nscd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nscd/nscd.c b/nscd/nscd.c index 01baed8..7dd9cb7 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -145,7 +145,7 @@ main (int argc, char **argv) { error (0, 0, gettext ("wrong number of arguments")); argp_help (&argp, stdout, ARGP_HELP_SEE, program_invocation_short_name); - exit (EXIT_FAILURE); + exit (1); } /* Read the configuration file. */ @@ -301,7 +301,7 @@ parse_opt (int key, char *arg, struct argp_state *state) case 'K': if (getuid () != 0) - error (EXIT_FAILURE, 0, _("Only root is allowed to use this option!")); + error (4, 0, _("Only root is allowed to use this option!")); { int sock = nscd_open_socket (); request_header req; @@ -325,7 +325,7 @@ parse_opt (int key, char *arg, struct argp_state *state) case 'i': if (getuid () != 0) - error (EXIT_FAILURE, 0, _("Only root is allowed to use this option!")); + error (4, 0, _("Only root is allowed to use this option!")); else { int sock = nscd_open_socket (); |