summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/popen.c
AgeCommit message (Collapse)Author
2001-06-03Move login_cap stuff before pipe dupingTodd C. Miller
Move the stderr dup2 to be with stdout dup2 as before since otherwise sendmail seems to get unhappy.
2001-06-02Version derived from new ftpd code which has an updated UCB license.Todd C. Miller
2001-02-18Update to ISC cron 4.0b1 + our patches. This is now under a BSD license.Todd C. Miller
I also fixed the signal handlers while I was at it.
2000-08-21closelog, and check for various child setup failures; solar@false.comTheo de Raadt
2000-08-20Add calls to setusercontext() and login_get*(). We basically callTodd C. Miller
setusercontext() in most places where previously we did a setlogin(). Add default login.conf file and put root in the "daemon" login class.
1999-08-30in cron_popen(), do an initgroups, setlogin() and chdir to the user'sTodd C. Miller
home dir to make things consistent with what cron does when executing a normal command on behalf of the user. I originally didn't think this was worth doing but changed my mind.
1999-08-28Run sendmail as the user corresponding to the crontab entry.Todd C. Miller
This keeps a user from abusing sendmail via the MAILTO var. Had to drop -or0s from MAILARGS since that causes sendmail to drop its privs (contrary to the sendmail docs).
1999-08-27Make sure argv gets NULL terminated if cron entry has >= MAX_ARGS arguments.Todd C. Miller
Gleaned from RedHat info.
1998-03-30Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various placesTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt