summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron
Commit message (Collapse)AuthorAgeFilesLines
* Fix the @monthly and @weekly shortcuts so that they actually runmikeh2001-08-161-0/+3
| | | | | | | | monthly and weekly, respectively. Also fix the @yearly shortcut so that it doesn't execute daily during January. OpenBSD and NetBSD also appear to have this bug. PR: bin/21152
* mdoc(7) police: s/BSD/.Bx/ where appropriate.ru2001-08-141-5/+20
|
* mdoc(7) police: fixed the "new sentence" bogons.ru2001-08-101-1/+1
|
* fix misspelling introduced in rev 1.14 (sames as -> same as)billf2001-07-251-1/+1
|
* Fix a possible NULL reference that would be triggereddavidn2001-07-201-1/+2
| | | | | | by invalid input in /etc/crontab. MFC after: 2 days
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-205-13/+21
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove an unused variable, and don't try to print a char[] using %d.dd2001-07-181-2/+2
| | | | Submitted by: Mark Peek <mark@whistle.com>
* free_entry(): Don't free e->envp if it's already NULL; likewise fordd2001-07-181-4/+4
| | | | | | | | | | | | | | | | e->cmd. free_entry() now does the right thing with partially-initialized structures. load_entry(): Don't call env_free() on e->envp throughout the routine before jumping to eof; the free_entry() call at that label will take care of it. The previous behavior resulted in e->envp being free'd twice (well, the second time would usually result in a crash, but that's besides the point); once in load_entry(), and once in free_entry() after the former called the latter. Also note that the check added to free_entry() (above) doesn't help, since e->envp wasn't reset to NULL after env_free(). Submitted by: Mark Peek <mark@whistle.com>
* Remove whitespace at EOL.dd2001-07-152-13/+13
|
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Where is the pointy hat? Fix cut/paste error. (hey, it compiled! :-)peter2001-06-161-1/+1
|
* Plug two memory leaks: call login_close() after login_getclass(), anddd2001-06-131-2/+6
| | | | | | | use free_entry() instead of free() to free a struct _entry. PR: 28108 Submitted by: Mark Peek <mark@whistle.com>
* Remove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'.peter2001-04-131-1/+19
| | | | | Otherwise, "crontab -l > file; vi file; crontab file" adds an extra set of "DO NOT EDIT" markers each and every time which is a bit silly.
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-262-2/+2
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* Stop cron from shouting in the syslog. Use setproctitle() instead, sincepeter2001-03-171-6/+1
| | | | | | | smashing argv[0] doesn't have the intended effect of changing the ps(1) output these days. PR: 25850
* mdoc(7) police revision 1.15:ru2001-03-091-10/+9
| | | | | | - replaced Oo/Oc enclosures with Op; - removed hard sentence breaks; - removed doubled space.
* The new version of the daylight time saving support. This time it worksbabkin2001-03-093-5/+182
| | | | | for any change of the time zone offset from GMT. To enable use the option -s.
* Properly detach at startup. We could be passing revoked fd's topeter2001-03-071-12/+2
| | | | | child processes or starting children with no fd 0 (stdin) at all etc. This is currently breaking on hub.freebsd.org.
* Fix typo: seperate -> separate.asmodai2001-02-061-1/+1
| | | | Seperate does not exist in the english language.
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+4
|
* Backed out the DST support changes.babkin2001-01-233-173/+7
|
* mdoc(7) police: ``Ds'' is not certified (no macro with such name exist)ru2001-01-221-1/+1
| | | | | | to be used as the -width parameter, it is provided solely for backwards compatibility with old mdoc(7). To make this work, mdocNG is forced to provide a dummy ``Ds'' macro.
* Made the special handling of the daylight time switches optional,babkin2001-01-222-6/+19
| | | | | | | | | enabled by the option "-s" (for dSt). This returned the default behavior to its original form. The new option name is not "-d" because that would cause associations with "debug" and cron already has "-x" for debugging, so this would cause confusion.
* Added sensible handling of switch to and from daylight saving timebabkin2001-01-203-5/+158
| | | | | | | for the jobs that fall into the disappearing or duplicated time interval. PR: bin/24494
* mdoc(7) police: removed leading whitespaces that are not insideru2001-01-191-1/+2
| | | | Bd/Ed; these hardly degrade the quality of the produced output.
* Prepare for mdoc(7)NG.ru2001-01-161-1/+1
|
* Add `_PATH_DEVZERO'.obrien2000-12-093-9/+12
| | | | Use _PATH_* where where possible.
* Correct definition of MAXHOSTNAMELEN in ifdef'ed out codekris2000-11-261-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-202-3/+3
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-1/+0
|
* Attempt to fix problem with users being able to convince the crontabdwmalone2000-11-062-9/+18
| | | | | | | | | | | | | | | program to read any file which is a valid crontab file. The fix is based on that used in NetBSD and OpenBSD - we keep the file open while the user is editing it. This means that files must be edited in place. Cron attempts to warn you if your editor does not do this. The fact that the file must be edited in place is also noted in the man page. This patch has been confirmed to work by atleast one person on -security and has been tested locally. Obtained from: OpenBSD
* Since -e and -r are right next to each other prompt before clobberingpaul2000-10-151-0/+10
| | | | a crontab you were planning to edit.
* Call login_close() to prevent parent from memory leaking in someache2000-07-022-0/+4
| | | | cases due to vfork()
* Prevent user from breaking his limits and restrictions orache2000-07-013-4/+61
| | | | | | | abusing sendmail by any other way via MAILTO tag (since sendmail is running from daemon). Now run sendmail from user, as any other cron user command. Obtained from: Inspired by OpenBSD, but implementation is different
* Make sure argv gets NULL terminated if cron entry has >= MAX_ARGS argumentsache2000-07-011-0/+1
| | | | Obtained from: OpenBSD popen.c v1.3
* Enable SIGCHLD to stop childs complaining to SIG_IGN of it.ache2000-07-011-1/+1
| | | | | | It helps perl f.e. Obtained from: OpenBSD do_command.c v1.7
* Catch and report fdopen failures.ghelmer2000-05-231-0/+10
|
* Catch and report memory allocation failures.ghelmer2000-05-232-27/+95
|
* Allocate space for arrays of type "char *", not "char **".ghelmer2000-04-301-3/+3
| | | | | | Rev 1.8 made the type consistently incorrect. Noted by: Ben Smithurst <ben@scientia.demon.co.uk>
* Fix a situation where a pointer which should point to dynamicallyghelmer2000-04-281-3/+8
| | | | | | | | | | | allocated memory was instead pointed to a static string. A later free() on the value of the pointer was a possible source of reported "warning: pointer to wrong page" messages from cron. Use consistent types in sizeof when malloc'ing memory for the environment. PR: kern/12248, bin/11169, bin/9722
* Revive rev 1.12 (NetBSD improvements including @ shortcuts).sheldonh2000-03-141-0/+24
|
* Fix parsing of commands after @ keywords (@hourly, @daily, etc.).ghelmer2000-03-131-1/+16
| | | | | | | | Fix setting of "hour" bitmap when @hourly keyword is specified. MFC candidate after 4.0-RELEASE. Problem-found-by: Sheldon Hearn <sheldonh@uunet.co.za>
* Back out previous commit. The code is not ready for it.sheldonh2000-03-131-24/+0
|
* Merge in NetBSD improvements:sheldonh2000-03-081-0/+24
| | | | | | | | | | * Clarify quoting value in of name = value pairs. * Describe the @reboot, @yearly, @annually, @monthly, @weekly, @daily, @midnight and @hourly extensions. PR: 17261 Submitted by: MIHIRA Yoshiro <sanpei@sanpei.org> Obtained from: NetBSD
* $Id$ -> $FreeBSD$peter1999-08-2827-27/+27
|
* Bad reference of su(8) changed to su(1).chris1999-08-141-3/+3
|
* Christen a BUGS section for an explanation of the impact of Daylightsheldonh1999-08-111-1/+13
| | | | | | | | | | | Savings Time on cron(8). If we ever introduce some work-around code for handling jobs scheduled for a time that "doesn't happen" due to DST, the section should be renamed to IMPLEMENTATION NOTES. PR: 10947 Reported by: Scott Drassinower <scottd@cloud9.net> Submitted by: Seth Bromberger <seth@freebie.dp.ny.frb.org> Reviewed by: mpp
* Changed 'overriding what /etc/passwd says' to 'overriding default setn_hibma1999-07-271-2/+2
| | | | | | | by cron' PR: 12520 Submitted by: (not specified)
* This is a hack. Cron runs with stdin/out/err pointing to /dev/console,peter1999-04-061-1/+10
| | | | | | | | | | | | | | | which init thoughtfully revoke()'s when starting a getty on ttyv0. This Cron's popen() was passing these fd's through to cron children (ie: sendmail, *not* normal cron jobs). The side effects were usually not noticed, but it tripped up postfix which did a sanity check to see that stdin/out/err were open, and got EBADF even thought the fd's were in use. I seem to recall sendmail itself has hacks to work around this problem, it had a checkfd012() function, possibly for this same problem. (Postfix has a workaround too now though..) This is a hack, not a fix. It's probably best to check and perhaps close/reopen() /dev/console if needed each time around the event loop. It would probably be useful to actually see any error messages from cron.
OpenPOWER on IntegriCloud