summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2009-01-11 04:32:05 +0000
committerRoland McGrath <roland@gnu.org>2009-01-11 04:32:05 +0000
commit251fe50c6df60f1432e94fea00be88b77b8ec3c4 (patch)
treebddf9578a2563493d83e28013903cc0701323856
parent0f95322a5f4b574286c3764a211af06a4aec3caf (diff)
2009-01-10 Roland McGrath <roland@redhat.com>
* nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
-rw-r--r--nscd/nscd.c5
1 files changed, 4 insertions, 1 deletions
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