]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r305269: cron: use existing maximum username constant MAXLOGNAME
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Sep 2016 17:56:52 +0000 (17:56 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Sep 2016 17:56:52 +0000 (17:56 +0000)
commit97c93d158cdeae0cabd1bdeb4391c22bf73ddc8d
tree3927e4ef4a89a55e692285993c293529cb03b699
parent8bad784704631afdc852a1ef2e5f4fa9b99ff004
MFC r305269: cron: use existing maximum username constant MAXLOGNAME

Previously cron had its own maximum username length limit, which was
smaller than the system's MAXLOGNAME. This could lead to crontab -u
updating the wrong user's crontab (if the name was truncated, and
matched another user).

PR: 212305
Reported by: Andrii Kuzik

git-svn-id: svn://svn.freebsd.org/base/stable/9@305429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/cron/cron/cron.h
usr.sbin/cron/crontab/crontab.c