summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* y2k nit: print 4 digit years correctly.danny1999-01-161-3/+6
| | | | | PR: 9506 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au>
* PR: bin/5572dillon1998-12-131-16/+28
| | | | | | | Prevent cron from going crazy if the time steps. For example, if you have a system with hundreds of users and lots of different crontabs and your time steps back an hour, the old cron would then attempt to run an hours worth of cron jobs in a few seconds.
* Fixed printf format errors.bde1998-07-061-2/+2
|
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-233-6/+6
|
* Added forgotten new file for `-Lfoo -lbar' -> `foo/bar.a' change.bde1998-03-081-0/+9
|
* Use `foo/bar.a' instead of `-Lfoo -lbar' for linking to static internalbde1998-03-072-29/+8
| | | | | | | | | | libraries so that `ld -f' in can create correct dependencies for yet-to-be-built libraries. Get the default BINDIR correctly (by including ../Makefile.inc recursively. Override the default it it is wrong. Don't override defaults when the defaults are correct.
* Don't use LDDESTDIR. Just put the -L arg in LDADD.bde1997-12-172-13/+11
|
* Log run-time parsing errors nowache1997-11-028-16/+88
| | | | | | | | | | | | Use getpwnam before getpwuid since two users with same uids can exists (affects new login classes code only) The same fixes as in inetd: by default run `system crontab things' with daemon login class now, not restrict them to user class breaking compatibility with old way (so-called nobody limits problem) Implement user[:group][/login-class] syntax in system crontab for more flexible control (the same as in inetd)
* Sort cross refereces in section SEE ALSO.wosch1997-09-291-3/+3
|
* Use err(3). Rewrote man page in mdoc format.charnier1997-09-1514-343/+347
|
* NOSHARED takes a yes/YES no/NO value, not "true, false, hey mon!".pst1997-06-291-1/+1
| | | | | | NOPIC is used to not generate a shared library, not NOSHARED. Make NOSHARED advisory where appropriate. Remove bogus NOSHARED (kbdio).
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-312-4/+4
| | | | posix standard on the topic.
* Tone down the paranoia a bit in from the previous commit. setusercontext()peter1997-03-141-11/+7
| | | | | automatically Does The Right Thing when lc == NULL, which just happens to be what the extra code in cron was trying to do. Simplify.
* For some reason, the old login class code didn't seem to be working here.peter1997-03-141-13/+24
| | | | | | | | | I suspect it was because the child exec code's parent was doing the initial lookups, then forking, then doing other things (possibly trashing the static data in the getpw*() buffer), then attempting to dereference *pwd and *lc. Also, no error checking appeared to be done - I've allowed it to fall back to the old "become user" code on critical failure rather than risk running a user's cron jobs as root.
* Revert $FreeBSD$ to $Id$peter1997-02-2224-24/+24
|
* crontab(5) incorrectly documented the dom/month arguments.mpp1997-02-131-2/+2
| | | | They have valid ranges of 1-31 and 1-12, not 0-31 and 0-12.
* Fix compile breakage: link against libutil.davidn1997-01-211-0/+2
|
* Make cron login class savvy.davidn1997-01-202-0/+17
| | | | | | Use setusercontext() rather than setuid()/setgid()/setlogin()/initgroups() which is all handled. Login environment is NOT set by this call as crontab provides its own means of doing so.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1424-24/+24
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Replace my "inane" usage of snprintf to copy strings with strncpy aspst1996-12-179-41/+102
| | | | | | | | | | used by OpenBSD. (Quite frankly, I think it's perfectly reasonable to use snprintf to copy strings, given that the semantics for strncpy() are utterly idiotic and there is no POSIX sstrncpy().) While I'm at it, incorporate some of OpenBSD's bugfixes to cron. NOT for 2.2
* Close yet another buffer overrunpst1996-12-161-2/+2
|
* Add sendmail option '-oi'wosch1996-11-101-2/+3
| | | | | | | | -oi Do not take dots on a line by themselves as a message terminator. Now this crontab entry works: * * * * * echo foo; echo .; echo blah
* personal (ie: with the crontab command) cron tabs were broken by thepeter1996-09-101-2/+2
| | | | | last change. :-( ie: /var/cron/log would report: .. cron[206]: (usage) CAN'T OPEN (%s/%s)
* Fix some buffer overflow problems...pst1996-09-081-3/+3
|
* Gratuitous whitespace change so that I can commit the source of the recentpst1996-08-051-3/+1
| | | | | | buffer overflow patch. Reviewed by: pst Submitted by: Dave Andersen <angio@aros.net>
* Fix up some more buffer overflow problems.pst1996-08-052-5/+9
|
* fix: debug flag 'test' cause endless loopwosch1996-06-302-6/+15
| | | | | | document debug flags close PR bin/683
* Bring in my changes for removing the pestilent obj links (unless youjkh1996-06-242-6/+6
| | | | | really want them) from /usr/src. This is the final version of the patches, incorporating the feedback I've received from -current.
* Quick patch to fix a bug where issuing ctl-c while in crontab -escrappy1996-04-091-3/+11
| | | | | | leaves editor running in background (PR: bin/751) Submitted by: candy@fct.kgc.co.jp (Toshihiro Kanda)
* This commit was generated by cvs2svn to compensate for changes in r13122,peter1995-12-303-313/+0
| | | | which included commits to RCS files with non-trunk default branches.
* Fix a bug that prevented %'s and \'s from being passed to the programjoerg1995-09-101-2/+11
| | | | | | invoked. Submitted by: fenner@parc.xerox.com (Bill Fenner)
* Check for expired passwords before allowing access to the system.mpp1995-08-281-1/+6
|
OpenPOWER on IntegriCloud