2
0
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:
Todd C. Miller
2013-12-11 13:43:10 -07:00
parent d83bfb9fe6
commit cbf41b8b96
12 changed files with 94 additions and 27 deletions

View File

@@ -475,7 +475,9 @@ char *strsignal(int);
int sig2str(int, char *);
#endif
#ifndef HAVE_STRTONUM
long long strtonum(const char *, long long, long long, const char **);
long long rpl_strtonum(const char *, long long, long long, const char **);
# undef strtonum
# define strtonum rpl_strtonum
#endif
void initprogname(const char *);