[DragonFlyBSD - Submit #3275] (Closed) [PATCH] pw_scan: remove checks for (u|g)ids > USHRT_MAX.

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Wed Jun 9 07:45:11 PDT 2021


Issue #3275 has been updated by swildner.

Status changed from New to Closed

I've pushed it (with some minor adjustments in manual pages). Thanks!

https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8f13a1c5481b54b10c81c0fb1c1f2b46f93cd643


----------------------------------------
Submit #3275: [PATCH] pw_scan: remove checks for (u|g)ids > USHRT_MAX.
http://bugs.dragonflybsd.org/issues/3275#change-14103

* Author: dancrossnyc
* Status: Closed
* Priority: Normal
* Assignee: 
* Category: Userland
* Target version: master
----------------------------------------
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--------------------------------
0001-pw_scan-remove-checks-for-u-g-ids-USHRT_MAX.patch (5.12 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account



More information about the Submit mailing list