mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 06:15:37 +00:00
The OpenBSD strtonum() uses very short error strings that can't
be translated usefully. Convert them to longer strings on error. Also use the longer strings for atomode() and atoid().
This commit is contained in:
@@ -1421,8 +1421,8 @@ sudo_ldap_parse_keyword(const char *keyword, const char *value,
|
||||
case CONF_INT:
|
||||
*(int *)(cur->valp) = strtonum(value, INT_MIN, INT_MAX, &errstr);
|
||||
if (errstr != NULL) {
|
||||
warningx(U_("%s: %s: value %s out of range)"),
|
||||
path_ldap_conf, keyword, value);
|
||||
warningx(U_("%s: %s: %s: %s"),
|
||||
path_ldap_conf, keyword, value, U_(errstr));
|
||||
}
|
||||
break;
|
||||
case CONF_STR:
|
||||
|
Reference in New Issue
Block a user