From owner-cvs-usrsbin Fri Mar 14 05:48:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA19052 for cvs-usrsbin-outgoing; Fri, 14 Mar 1997 05:48:07 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id FAA19045; Fri, 14 Mar 1997 05:48:06 -0800 (PST) Date: Fri, 14 Mar 1997 05:48:06 -0800 (PST) From: Peter Wemm Message-Id: <199703141348.FAA19045@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrsbin Subject: cvs commit: src/usr.sbin/cron/cron do_command.c Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk peter 97/03/14 05:48:05 Modified: usr.sbin/cron/cron do_command.c Log: 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. Revision Changes Path 1.11 +24 -13 src/usr.sbin/cron/cron/do_command.c