summaryrefslogtreecommitdiff
path: root/usr.sbin/cron
AgeCommit message (Collapse)Author
2010-04-10Fix bug in GMT calculation for systems without tm_gmtoff.Todd C. Miller
From Javier Fernandez-Sanguino Pena
2010-03-30Log non-informational messages at LOG_WARNING priority instead of LOG_INFO.Jacek Masiulaniec
OK millert@
2009-10-29do not discard the first character of the command after the -q optionMarkus Friedl
ok millert@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-27using the rcsid is sillyTheo de Raadt
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-29tweak usage()Igor Sobrado
2008-05-10from ray@Okan Demirmen
- move the ignoring of the top few (3) comments into a function of its own. - ignore these comments for crontab listings. based on a patch from Slava Semushin ok ray@ millert@
2008-02-29no , at end of enum; tobiasu@tmux.orgTheo de Raadt
2008-01-05remove unused functionCharles Longeau
from tobias@ ok mglocker@ tobias@
2007-11-17Deal with timespec vs. timeval precision issues. Fixes a problemTodd C. Miller
where the "no changes" case was not properly detected due to timespec supporting nanosec resolution but timeval only supporting microsec resolution. OK deraadt@
2007-10-17- Be more careful about pre-existing SIGCHLD handlers (or SIG_IGN) byTheo de Raadt
temporarily restoring default behaviour. This is not 100% ideal. But this fixes editor handling in mail... bah, it is really unfortunate that got broken - refactor the restoration code as well, to make it simpler ok ray
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-09-01Include err.h and remove unused variables.Ray Lai
OK millert.
2007-08-31Copy editit() from sendbug, synchronizing editor calling code.Ray Lai
OK otto, millert, beck, mbalmer, deraadt.
2007-06-02safer snprintf construct with more paranoid length calculationPeter Valchev
ok millert
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-30usr.sbin is kinder...Jason McIntyre
- consistent text for STANDARDS - note which options are extensions to POSIX
2007-05-25Check fdopen() return value.Todd C. Miller
Ignore SIG_PIPE when writing to sendmail. This allows cron to still run jobs when sendmail is missing or broken (a warning will be logged). Move mailto variable to the same scope as mail and use the mail variable, not mailto, to test whether we have an open pipe to the mailer.
2007-04-10privledges -> privilegesMiod Vallat
2007-03-28Since /etc/crontab is not edited via crontab(1) there's no goodTodd C. Miller
reason to require its mode to be be 0400 or to bail if the link count is != 1. The reason for such paranoia all has to do with crontab(1) and editing user crontab files. We now only require that /etc/crontab not be writable by anyone other than the owner. OK deraadt@ ajacoutot@ jmc@
2007-02-19tidy up synopsis and usage();Jason McIntyre
2007-02-18tidy up synopsis and usage();Jason McIntyre
2007-02-13crontab -e /tmp//crontab.ynUyD24939 versus /tmp/crontab.ynUyD24939.Marcus Glocker
OK millert@
2006-08-13Add Auto-Submitted header in generated mail as per RFC 3834.Todd C. Miller
OK henning@, ckuethe@, krw@, ian@. From Tamas TEVESZ.
2006-04-03some more malloc(x * y); bzero() -> calloc(x, y) whacking fromDamien Miller
adobriyan AT gmail.com
2005-11-30timezone -> time zoneJason McIntyre
2005-11-29crontab.c uses the rcsid in the crontab head comment so don't protectTodd C. Miller
it from lint. Found by cloder@
2005-11-15More typos (especially indicies -> indices), checked with jmc@Miod Vallat
2005-11-15If two or more changes are made withing a single second it is possibleTodd C. Miller
that only the first change will be loaded due to the granularity of st_mtime. Work around this by zeroing the saved mtime when we get a poke on the socket from crontab or at since that means there has been a change. Fix from Daniel Lucq.
2005-06-08Force pid file fd to be > 2 so we don't clobber it when dup'ingTodd C. Miller
fds 0-2 to /dev/null. Tested and OK aaron@
2005-03-10put umask restores in right place; millert okTheo de Raadt
2005-01-30Detect editors that move the edited file out from underneath us and warn.Todd C. Miller
Based on an idea from Han Boetes.
2005-01-30bzero s_un before use; Andrey MatveevTodd C. Miller
2005-01-30Proper cleanup on malloc failure; Andrey MatveevTodd C. Miller
2005-01-30fix some whitespaceTodd C. Miller
2004-11-04Treat EOF at prompt the same as 'n' instead of looping forever.Todd C. Miller
Noticed by mepch@. OK pedro@ and deraadt@
2004-09-16nice off_t castTheo de Raadt
2004-09-16ftruncate() with ftello() instead of ftell(); ok millertTheo de Raadt
2004-07-22Fix incorrect snprintf return value check noticed by Jarno Huuskonen.Todd C. Miller
Also make a utime() failure non-fatal since the important thing is the poke on the socket now.
2004-07-09ansiTheo de Raadt
2004-06-22Recent glue_strings change reversed a few checks; fix up conditionalsAnil Madhavapeddy
to check for overflow as others do by convention. Noticed by Andreas Kahari <ak+openbsd at freeshell.org>, millert@ ok
2004-06-22use snprintf(3) instead of home-grown glue_strings() functionAnil Madhavapeddy
millert@ ok
2004-06-17UUpdate ISC copyright year to 2004Todd C. Miller
Remove unused macros Skip_Line and MkLower Remove trailing whitespace
2004-06-06Fix typo in last commit for non-compiled code. Dmitry V. LevinTodd C. Miller
2004-06-03Document behavior if MAILTO is set to the empty string.Todd C. Miller
2004-06-03More changes from Dmitry V. Levin:Todd C. Miller
Check return values for setgid, initgroups and setuid in code we don't compile. Print the correct filename for the at job in mail sent. Add some #if DEBUGGING in cron.c's usage(). Set sunlen each time before using it in accept(). Don't send mail at all if MAILTO is set but empty.
2004-06-03Though crontab files are created mode 0600 we should accept ones thatTodd C. Miller
are mode 0400 too. From Walt Howard.
2004-05-13Pasto, change a cast from uid_t to gid_t (no real change...)Todd C. Miller