diff options
author | sheldonh <sheldonh@FreeBSD.org> | 1999-08-31 13:11:39 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 1999-08-31 13:11:39 +0000 |
commit | cf4c04192a8fb97e984a62b9a1a91497cac8d067 (patch) | |
tree | ebe06a7e5aa50d65936adea18e5dcfdc07f8f1b2 /lib | |
parent | 506aa9c1b6291f3dfca3bfbfa7bf5b962e2027d2 (diff) | |
download | FreeBSD-src-cf4c04192a8fb97e984a62b9a1a91497cac8d067.zip FreeBSD-src-cf4c04192a8fb97e984a62b9a1a91497cac8d067.tar.gz |
Back out previous commit. I mistook passing commentary from bde for
review.
Requested by: bde
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/pw_scan.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libc/gen/pw_scan.c b/lib/libc/gen/pw_scan.c index e03b49c..5190686 100644 --- a/lib/libc/gen/pw_scan.c +++ b/lib/libc/gen/pw_scan.c @@ -56,9 +56,6 @@ static const char rcsid[] = #include "pw_scan.h" -static int big_uids = 0; /* Used for legacy max uid_t warning */ -static int big_gids = 0; /* Used for legacy max gid_t warning */ - int pw_scan(bp, pw) char *bp; @@ -87,9 +84,9 @@ pw_scan(bp, pw) warnx("root uid should be 0"); return (0); } - if (id > USHRT_MAX && !(big_uids++)) { - warnx("%s > legacy max uid value (%d): " - "no more such warnings", p, USHRT_MAX); + if (id > USHRT_MAX) { + warnx("%s > max uid value (%d)", p, USHRT_MAX); + /*return (0);*/ /* THIS SHOULD NOT BE FATAL! */ } pw->pw_uid = id; @@ -97,9 +94,9 @@ pw_scan(bp, pw) goto fmt; if(p[0]) pw->pw_fields |= _PWF_GID; id = atol(p); - if (id > USHRT_MAX && !(big_gids++)) { - warnx("%s > max gid value (%d): " - "no more such warnings", p, USHRT_MAX); + if (id > USHRT_MAX) { + warnx("%s > max gid value (%d)", p, USHRT_MAX); + /* return (0); This should not be fatal! */ } pw->pw_gid = id; |