summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/popen.c
AgeCommit message (Collapse)Author
2003-06-02I'm a dork, I removed the 4th clause of the UCB license instead ofTodd C. Miller
the 3rd one.
2003-02-20Sync with ISC cron-current + my at(1) integration.Todd C. Miller
The at(1) code is now more tightly integrated into the cron codebase.
2002-07-15Move atrun(8) functionality into cron(8) proper. This fixes theTodd C. Miller
long-standing annoyance that atrun's granularity is 10 minutes. Most at jobs run with a 1 minute granularity. Jobs submitted via "at now" or "batch" will run immediately. Includes a rewritten cron(8) man page. at(1) will be integrated more closely into cron at a future date. Upgrading notes: the atrun job in root's crontab should be removed. the /var/at/spool directory is no longer used
2002-07-09We already did a closelog(); no need for it here.Todd C. Miller
2002-07-08Merge in some changes from Paul Vixie's tree; most are cosmeticTodd C. Miller
o ANSI function headers o return (foo) not return foo o add -oi to sendmail flags o update email address in man pages o make some strings const o completely remove globbing cruft from popen.c o whitespace changes o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries
2002-06-23uid_t and gid_t are unsignedTheo de Raadt
2002-01-09Kill volatile now that jongjmp is history.Todd C. Miller
2001-10-24When becoming a daemon, dup stdin, stdout, and stderr to /dev/nullTodd C. Miller
Change an unsafe vfork() to fork() Fix dup2() usage--must check for oldd == newd case and no need to close oldd Fixes annoying messages from sendmail about stdout being closed.
2001-10-01In "r" mode always dup2(STDOUT_FILENO, STDERR_FILENO); from ftpd/popen.cTodd C. Miller
Otherwise, sendmail may complain about the lack of stderr.
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