mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
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:
parent
0f95322a5f
commit
251fe50c6d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user