2009-01-10 Roland McGrath <roland@redhat.com>

* nscd/nscd.c (parse_opt): Use argp_error for bad -i argument.
This commit is contained in:
Roland McGrath 2009-01-11 04:32:05 +00:00
parent 0f95322a5f
commit 251fe50c6d

View File

@ -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