summaryrefslogtreecommitdiff
path: root/usr.sbin/cron
AgeCommit message (Collapse)Author
2002-02-19Fix gethostname() usage.Mike Pechkin
deraadt@ ok
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-01-09Kill volatile now that jongjmp is history.Todd C. Miller
2001-12-20Cause crontab to send SIGUSR1 when a user's crontab file has changed.Todd C. Miller
In cron, this interrupts the sleep() in cron_sleep() and causes cron to check to see what signal woke it up and act appropriately. This makes crontab changes take effect more or immediately.
2001-12-13Mention that cron should be started late in the rc file and why.Todd C. Miller
2001-12-12o pids should be pid_t, not intTodd C. Miller
o check return value of fscanf()
2001-12-11If we receive a signal during the sleep(), run signal handlers asTodd C. Miller
needed and then go back to sleep. This fixes the issue where processes run by cron could hang around as zombies for a minute (ie: until we were done sleeping).
2001-12-07do not call abort(), it is tastelessTheo de Raadt
2001-11-17save errno in signal handlerTheo de Raadt
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-08-22More manpage mania. Crontab entries are comprised of a certain numberHugh Graham
of fixed fields (the time spec, etc) and a command which may itself be one or more fields long. Make this clear.
2001-08-22 o System crontab has seven (7) fieldsHeikki Korpela
o User crontab has six (6) fields o Closes PR 2021; thanks jamesez@cerberus.jimz.net o Okay millert@
2001-08-19Better file change detection:Todd C. Miller
o when copying to temp file set utimes on temp file equal to original o use st_mtimespec instead of st_mtime for better granularity
2001-08-11If waitpid() returns -1, check for EINTRTodd C. Miller
2001-08-02o) .Sh AUTHOR -> .Sh AUTHORS;Mike Pechkin
o) .Sh EXAMPLE -> .Sh EXAMPLES; o) Delete .Sh OPTIONS. Text moved to .Sh DESCRIPTION; millert@ ok
2001-07-13flags set in signal handlers should be volatile sig_atomic_tTodd C. Miller
2001-07-09correct type on last arg to execl(); nordin@cse.ogi.eduTheo de Raadt
2001-06-19o Don't talk about /bin/mail vs. sendmail since we always build withTodd C. Miller
sendmail support. o Remove misleading info in STANDARDS about the syntax being different from previous Vixie Cron versions. The flags have been this way for all versions of cron we have shipped with.
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-05-29build with BSD auth supportTodd C. Miller
2001-02-21Add back code in find_jobs() that got dropped in cron merge.Todd C. Miller
2001-02-20Turn get_gmtoff into a macro for OSes with tm_gmtoff (like OpenBSD).Todd C. Miller
Save the GMT offset in a global so cron_sleep can use it. This means the offset can only change in set_time() which is really what we want.
2001-02-19Normalize the time in minutes to GMT so we can really catch DST changesTodd C. Miller
(since time() does not change during a DST switch). This makes cron correctly detect DST changes. It does not fix the problem of wildcard jobs running multiple times. Also, don't rely on tm_gmtoff since that is non-standard (but use it when we have it).
2001-02-19We handle the clock going backwards.Todd C. Miller
2001-02-18Don't run sendmail with the -or0s arg since it causes sendmail toTodd C. Miller
drop root privileges when specified on the command line.
2001-02-18NULL vs '\0'Todd C. Miller
2001-02-18Define CAPITALIZE_FOR_PS so children are capitalized in ps (like before).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.
2001-02-12Define MAX_UNAME in terms of _PW_NAME_LEN. Potential problem found byTodd C. Miller
achter05@IE.HVA.NL
2001-01-19mark remaining signal races which are difficult to fixTheo de Raadt
2000-09-15check return value for setenv(3) for failure, and deal appropriatelyTheo de Raadt
2000-08-21snprintf sprinkles; solar@false.com & ITheo de Raadt
2000-08-21correct tmp file path; solar@false.comTheo de Raadt
2000-08-21swap_uids_back; solar@false.comTheo de Raadt
2000-08-21closelog, and check for various child setup failures; solar@false.comTheo de Raadt
2000-08-21prototype repairTheo de Raadt
2000-08-21strncpy not safe on overlapping stringsTheo de Raadt
2000-08-21save errno in handlerTheo 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.
2000-04-15- `coexist', not `co-exist'; it's not hyphenated.Aaron Campbell
- Correct some .Nm usage.
2000-03-23More pedantic man page formatting insanity, lalalaAaron Campbell
2000-03-19Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some otherAaron Campbell
cleanup along the way.
2000-03-18fix parsing of commands after @ keywords and hourly bitmap handling;Theo de Raadt
sheldonh@uunet.co.za
2000-01-10the theTheo de Raadt
1999-11-20Use mkstemp() for the temp file created in the tabs dir andTodd C. Miller
clean up the temp file nicely if we are interupted.
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-29Add comment to remind people not to use args in MAILARGS that willTodd C. Miller
cause sendmail to drop it's setuid privs.