mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-22 16:44:32 +01:00
Submitted by: archie@whistle.com
This program should COMPLAIN about uids > 65K but not abort.. they are after all legal, and some of us NEED them!
This commit is contained in:
parent
b5bc989d0c
commit
6ede0fb59d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16552
@ -83,7 +83,7 @@ pw_scan(bp, pw)
|
||||
}
|
||||
if (id > USHRT_MAX) {
|
||||
warnx("%s > max uid value (%d)", p, USHRT_MAX);
|
||||
return (0);
|
||||
/*return (0);*/ /* THIS SHOULD NOT BE FATAL! */
|
||||
}
|
||||
pw->pw_uid = id;
|
||||
|
||||
@ -93,7 +93,7 @@ pw_scan(bp, pw)
|
||||
id = atol(p);
|
||||
if (id > USHRT_MAX) {
|
||||
warnx("%s > max gid value (%d)", p, USHRT_MAX);
|
||||
return (0);
|
||||
/* return (0); This should not be fatal! */
|
||||
}
|
||||
pw->pw_gid = id;
|
||||
|
||||
|
@ -83,7 +83,7 @@ pw_scan(bp, pw)
|
||||
}
|
||||
if (id > USHRT_MAX) {
|
||||
warnx("%s > max uid value (%d)", p, USHRT_MAX);
|
||||
return (0);
|
||||
/*return (0);*/ /* THIS SHOULD NOT BE FATAL! */
|
||||
}
|
||||
pw->pw_uid = id;
|
||||
|
||||
@ -93,7 +93,7 @@ pw_scan(bp, pw)
|
||||
id = atol(p);
|
||||
if (id > USHRT_MAX) {
|
||||
warnx("%s > max gid value (%d)", p, USHRT_MAX);
|
||||
return (0);
|
||||
/* return (0); This should not be fatal! */
|
||||
}
|
||||
pw->pw_gid = id;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user