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:
Julian Elischer 1996-06-20 19:19:29 +00:00
parent b5bc989d0c
commit 6ede0fb59d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16552
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;