summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2003-08-19 03:53:03 +0000
committergad <gad@FreeBSD.org>2003-08-19 03:53:03 +0000
commitb21b4520edc240251c53099b6c14b637c9baf097 (patch)
tree9168d58cef0f9b2f1a4e122a95d5e7b1f08392c2 /share
parent19b67cf857d897a717de564b1fbd433576000ca6 (diff)
downloadFreeBSD-src-b21b4520edc240251c53099b6c14b637c9baf097.zip
FreeBSD-src-b21b4520edc240251c53099b6c14b637c9baf097.tar.gz
When checking the 'user:group' field in newsyslog.conf, freebsd's source
was mistakenly calling the standard isnumber() function to find out if the given 'user' or 'group' were all numeric. This meant that only the first character of the fields were actually checked, so a username of (say) '3com' would look like a number, and thus get mapped to uid=3 (bin) instead of username=3com. This bug was introduced back in freebsd's v1.1. That initial import almost matches netbsd's v1.9, except that an internal isnumber() routine was removed in favor of the standard library version. The thing is, that internal routine was checking the entire string, and not just the first digit. In OpenBSD, isnumber() was eventually renamed to isnumberstr() to make the distinction more obvious, and I'm going to follow that lead. I believe this also happens to remove the last references to isnumber() in the entire freebsd base system. Obtained from: OpenBSD, by a long circuitous route MFC after: 5 days
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud