userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
authorJim Meyering <meyering@redhat.com>
Sat, 28 Nov 2009 06:33:16 +0000 (07:33 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 28 Nov 2009 06:33:16 +0000 (07:33 +0100)
commit2ead6c09f1bda238b1ccd923f9983b7744581c83
tree770d86e9cebd64de68a5be535adc1e85c543801b
parent42956c5d101d677aa660e1cdd5df3d8ab1a1d348
userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1

* lib/userspec.c (parse_with_separator): Do not accept a user ID
number of MAXUID when it evaluates to (uid_t) -1.
Likewise for group ID.  Reported by Matt McCutchen in
<http://savannah.gnu.org/bugs/?28113>
ChangeLog
lib/userspec.c