summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/do_command.c
AgeCommit message (Collapse)Author
2002-08-08Move closelog() into log_close() function and call that insteadTodd C. Miller
of calling closelog() (with #ifdefs) directly.
2002-07-15fix typo (pw vs. pwd) in unused codeTodd C. Miller
2002-07-15Pass e->pwd to auth_setpwd() to avoid extra passwd lookup in BSD auth routinesTodd C. Miller
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-12Do not collapse \\ -> \ in a command, the shell will be unhappy withTodd C. Miller
bare backslashes.
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-06-21Correctly close the writing end of the pipe when dup'ing the fd toTodd C. Miller
stdout. This was a pasto/thinko on my part. Problem found by jean-philippe wan-hoi.
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-02-19Fix gethostname() usage.Mike Pechkin
deraadt@ ok
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-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-21snprintf sprinkles; solar@false.com & ITheo 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.
2000-06-03Set SIGCHLD to SIG_DFL not SIG_IGN to prevent "perl -w" fromTodd C. Miller
complaining "Can't ignore signal CHLD, forcing to default". Setting SIGCHLD to SIG_IGN means "don't provide exit status for my children" on some OSes which is not what we want--we just don't want to catch SIGCHLD since our parent does that for us.
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).
1998-05-08when handling % line breaks, correctly handle escaped % which should be ↵Theo de Raadt
embedded; fenner@parc.xerox.com
1998-03-30Y2K fixes from Andreas.Gunnarsson@emw.ericsson.se; culled from various placesTheo de Raadt
1997-12-22handle timing normally except when clock jumps between 1 and 3 hours. If itTheo de Raadt
jumps, attempt as best as possible to gaurantee that jobs DO run, but only run ONCE; patch by thompson@.tgsoft.com
1996-08-07setlogin(username)Theo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt