From 251fe50c6df60f1432e94fea00be88b77b8ec3c4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 11 Jan 2009 04:32:05 +0000 Subject: 2009-01-10 Roland McGrath * nscd/nscd.c (parse_opt): Use argp_error for bad -i argument. --- nscd/nscd.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nscd/nscd.c b/nscd/nscd.c index 08bf1f1260..1129cf8480 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 -- cgit v1.2.3