MFC r305269: cron: use existing maximum username constant MAXLOGNAME
authoremaste <emaste@FreeBSD.org>
Mon, 5 Sep 2016 15:50:40 +0000 (15:50 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 5 Sep 2016 15:50:40 +0000 (15:50 +0000)
commit6da7f85311d66f5b649b451d176a99d6daa05f54
tree415e17bde2893531e4787a39a5e5192483141d9a
parent23cf012b280ed8f8274e25a82bf44492132b1419
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
usr.sbin/cron/cron/cron.h
usr.sbin/cron/crontab/crontab.c