Actions
Submit #3275
closed[PATCH] pw_scan: remove checks for (u|g)ids > USHRT_MAX.
Start date:
05/21/2021
Due date:
% Done:
0%
Estimated time:
Description
Remove the check and simplify the logic for checking
UID/GID validity in `pw_scan()` by calling `strtonum`
instead of `strtoul`.
I ran into this because I use a non-default UID/GID
numbering scheme where both are typically greater
than 2^16 for normal users. The width of UIDs has
been 32 bits since before 4.4BSD in 1994, almost 27
years ago; if larger UIDs were going to show up as
a problem it would have already happened.
Files
Actions