]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
For some reason, the old login class code didn't seem to be working here.
authorPeter Wemm <peter@FreeBSD.org>
Fri, 14 Mar 1997 13:48:04 +0000 (13:48 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Fri, 14 Mar 1997 13:48:04 +0000 (13:48 +0000)
commitc00d650f25e4b0f96f9ff12dcdf9db004a2510f2
tree04cc52777d0bd2f6a2d9bc30a12348e791061811
parentff7c711c58fb44ed50cae97a310684ff87c05e65
For some reason, the old login class code didn't seem to be working here.
I suspect it was because the child exec code's parent was doing the
initial lookups, then forking, then doing other things (possibly trashing
the static data in the getpw*() buffer), then attempting to dereference
*pwd and *lc.  Also, no error checking appeared to be done - I've allowed
it to fall back to the old "become user" code on critical failure rather than
risk running a user's cron jobs as root.
usr.sbin/cron/cron/do_command.c