From: Roland McGrath Date: Sun, 11 Jan 2009 04:32:05 +0000 (+0000) Subject: 2009-01-10 Roland McGrath X-Git-Tag: cvs/fedora-glibc-20090204T2135~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=251fe50c6df60f1432e94fea00be88b77b8ec3c4;p=thirdparty%2Fglibc.git 2009-01-10 Roland McGrath * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument. --- diff --git a/nscd/nscd.c b/nscd/nscd.c index 08bf1f1260d..1129cf8480f 100644 --- a/nscd/nscd.c +++ b/nscd/nscd.c @@ -338,7 +338,10 @@ parse_opt (int key, char *arg, struct argp_state *state) break; if (cnt == lastdb) - return ARGP_ERR_UNKNOWN; + { + argp_error (state, _("'%s' is not a known database"), arg); + return EINVAL; + } size_t arg_len = strlen (arg) + 1; struct