]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r305269: cron: use existing maximum username constant MAXLOGNAME
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Sep 2016 15:50:40 +0000 (15:50 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 5 Sep 2016 15:50:40 +0000 (15:50 +0000)
commit231139c31cc55aadd3819b331baf403fab0e2a45
tree415e17bde2893531e4787a39a5e5192483141d9a
parent47025c121aa7dac65253649685f905043217872f
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/10@305424 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/cron/cron/cron.h
usr.sbin/cron/crontab/crontab.c