mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 21:38:05 +00:00
Change max user-ID and group-ID from INT_MAX to UINT_MAX.
This commit is contained in:
parent
865d3cd0bb
commit
166e0e13bc
@ -238,7 +238,7 @@ evlog_new(TimeSpec *submit_time, InfoMessage **info_msgs, size_t infolen,
|
|||||||
}
|
}
|
||||||
if (strcmp(key, "rungid") == 0) {
|
if (strcmp(key, "rungid") == 0) {
|
||||||
if (type_matches(info, source, INFO_MESSAGE__VALUE_NUMVAL)) {
|
if (type_matches(info, source, INFO_MESSAGE__VALUE_NUMVAL)) {
|
||||||
if (info->u.numval < 0 || info->u.numval > INT_MAX) {
|
if (info->u.numval < 0 || info->u.numval > UINT_MAX) {
|
||||||
errno = ERANGE;
|
errno = ERANGE;
|
||||||
sudo_warn(U_("%s: %s"), source, "rungid");
|
sudo_warn(U_("%s: %s"), source, "rungid");
|
||||||
} else {
|
} else {
|
||||||
@ -259,7 +259,7 @@ evlog_new(TimeSpec *submit_time, InfoMessage **info_msgs, size_t infolen,
|
|||||||
}
|
}
|
||||||
if (strcmp(key, "runuid") == 0) {
|
if (strcmp(key, "runuid") == 0) {
|
||||||
if (type_matches(info, source, INFO_MESSAGE__VALUE_NUMVAL)) {
|
if (type_matches(info, source, INFO_MESSAGE__VALUE_NUMVAL)) {
|
||||||
if (info->u.numval < 0 || info->u.numval > INT_MAX) {
|
if (info->u.numval < 0 || info->u.numval > UINT_MAX) {
|
||||||
errno = ERANGE;
|
errno = ERANGE;
|
||||||
sudo_warn(U_("%s: %s"), source, "runuid");
|
sudo_warn(U_("%s: %s"), source, "runuid");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user