aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/cron
Commit message (Collapse)AuthorAgeFilesLines
* Actually use the exitstatus value that we maintain.Dima Dorfman2002-10-011-1/+1
| | | | | | | | PR: 43562 Submitted by: Marc Olzheim <marcolz@ilse.nl> Notes: svn path=/head/; revision=104326
* Never allow a user to use crontab if opening /var/cron/{allow,deny} failsTim J. Robbins2002-08-041-16/+23
| | | | | | | | | | | for any reason other than ENOENT (think resource limits). Close allow and deny files before allowed() returns to stop the user's EDITOR being able to read them. Obtained from: OpenBSD (partially) Notes: svn path=/head/; revision=101293
* The .Nm utilityPhilippe Charnier2002-07-141-7/+12
| | | | Notes: svn path=/head/; revision=99968
* load_env(), the function that attempts to parse a crontabOllivier Robert2002-05-231-23/+76
| | | | | | | | | | | | | | line as an environment variable assignment, is broken and not conformant to its description in the manual page. I think it is worthwhile to have that fix in 4.6. PR: bin/38374 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> MFC after: 2 days Notes: svn path=/head/; revision=97165
* Mark all internal libraries with INTERNALLIB.Ruslan Ermilov2002-05-131-5/+1
| | | | Notes: svn path=/head/; revision=96514
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95127
* Only remove the '\n' at the end of a line if there is one.David Malone2002-04-101-1/+2
| | | | | | | | | | | I missed this as part of the fix to the PR below. PR: 31265 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> MFC after: 1 week Notes: svn path=/head/; revision=94389
* Be a bit more verbose. "modtime" means nothing.Giorgos Keramidas2002-03-241-6/+6
| | | | | | | | | "modification time" is a lot better. MFC after: 3 days Notes: svn path=/head/; revision=93062
* Grammar fix: "When at least one of the fields .. matches ...".Giorgos Keramidas2002-03-241-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=93061
* Describe the format of the allow and deny files. This is more-or-lessDavid Malone2002-03-171-0/+4
| | | | | | | | | | | | the patch Matthew submitted, but I broke the lines in a more FreeBSD way and made one small wording change. PR: 31265 Submitted by: Matthew D. Fuller <fullermd@over-yonder.net> MFC after: 3 weeks Notes: svn path=/head/; revision=92501
* Make cron actually build without defining LOGIN_CAP.Rob Braun2002-02-061-1/+1
| | | | | | | Reviewed by: jkh Notes: svn path=/head/; revision=90276
* Document the -x debugging option.Ruslan Ermilov2002-01-161-4/+25
| | | | | | | | PR: docs/33784 Submitted by: Mike Makonnen <mike_makonnen@yahoo.com> Notes: svn path=/head/; revision=89423
* Fix the @monthly and @weekly shortcuts so that they actually runMike Heffner2001-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 Notes: svn path=/head/; revision=81778
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-5/+20
| | | | Notes: svn path=/head/; revision=81622
* mdoc(7) police: fixed the "new sentence" bogons.Ruslan Ermilov2001-08-101-1/+1
| | | | Notes: svn path=/head/; revision=81458
* fix misspelling introduced in rev 1.14 (sames as -> same as)Bill Fumerola2001-07-251-1/+1
| | | | Notes: svn path=/head/; revision=80312
* Fix a possible NULL reference that would be triggeredDavid Nugent2001-07-201-1/+2
| | | | | | | | | by invalid input in /etc/crontab. MFC after: 2 days Notes: svn path=/head/; revision=80030
* Perform a major cleanup of the usr.sbin Makefiles.David E. O'Brien2001-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. Notes: svn path=/head/; revision=80029
* Remove an unused variable, and don't try to print a char[] using %d.Dima Dorfman2001-07-181-2/+2
| | | | | | | Submitted by: Mark Peek <mark@whistle.com> Notes: svn path=/head/; revision=79861
* free_entry(): Don't free e->envp if it's already NULL; likewise forDima Dorfman2001-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> Notes: svn path=/head/; revision=79860
* Remove whitespace at EOL.Dima Dorfman2001-07-152-13/+13
| | | | Notes: svn path=/head/; revision=79755
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-1/+1
| | | | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=79452
* Where is the pointy hat? Fix cut/paste error. (hey, it compiled! :-)Peter Wemm2001-06-161-1/+1
| | | | Notes: svn path=/head/; revision=78321
* Plug two memory leaks: call login_close() after login_getclass(), andDima Dorfman2001-06-131-2/+6
| | | | | | | | | | use free_entry() instead of free() to free a struct _entry. PR: 28108 Submitted by: Mark Peek <mark@whistle.com> Notes: svn path=/head/; revision=78156
* Remove the 'DO NOT EDIT THIS FILE' crud that we spit out with 'crontab -l'.Peter Wemm2001-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. Notes: svn path=/head/; revision=75456
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-262-2/+2
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74816
* Set the default manual section for usr.sbin/ to 8.Ruslan Ermilov2001-03-201-1/+0
| | | | Notes: svn path=/head/; revision=74532
* Stop cron from shouting in the syslog. Use setproctitle() instead, sincePeter Wemm2001-03-171-6/+1
| | | | | | | | | | smashing argv[0] doesn't have the intended effect of changing the ps(1) output these days. PR: 25850 Notes: svn path=/head/; revision=74375
* mdoc(7) police revision 1.15:Ruslan Ermilov2001-03-091-10/+9
| | | | | | | | | - replaced Oo/Oc enclosures with Op; - removed hard sentence breaks; - removed doubled space. Notes: svn path=/head/; revision=74020
* The new version of the daylight time saving support. This time it worksSergey Babkin2001-03-093-5/+182
| | | | | | | | for any change of the time zone offset from GMT. To enable use the option -s. Notes: svn path=/head/; revision=74010
* Properly detach at startup. We could be passing revoked fd's toPeter Wemm2001-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. Notes: svn path=/head/; revision=73955
* Fix typo: seperate -> separate.Jeroen Ruigrok van der Werven2001-02-061-1/+1
| | | | | | | Seperate does not exist in the english language. Notes: svn path=/head/; revision=72091
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+4
| | | | Notes: svn path=/head/; revision=71898
* Backed out the DST support changes.Sergey Babkin2001-01-233-173/+7
| | | | Notes: svn path=/head/; revision=71407
* mdoc(7) police: ``Ds'' is not certified (no macro with such name exist)Ruslan Ermilov2001-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. Notes: svn path=/head/; revision=71367
* Made the special handling of the daylight time switches optional,Sergey 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. Notes: svn path=/head/; revision=71358
* Added sensible handling of switch to and from daylight saving timeSergey Babkin2001-01-203-5/+158
| | | | | | | | | | for the jobs that fall into the disappearing or duplicated time interval. PR: bin/24494 Notes: svn path=/head/; revision=71301
* mdoc(7) police: removed leading whitespaces that are not insideRuslan Ermilov2001-01-191-1/+2
| | | | | | | Bd/Ed; these hardly degrade the quality of the produced output. Notes: svn path=/head/; revision=71263
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-161-1/+1
| | | | Notes: svn path=/head/; revision=71102
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-093-9/+12
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* Correct definition of MAXHOSTNAMELEN in ifdef'ed out codeKris Kennaway2000-11-261-1/+1
| | | | Notes: svn path=/head/; revision=69230
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-202-3/+3
| | | | Notes: svn path=/head/; revision=68965
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-1/+0
| | | | Notes: svn path=/head/; revision=68575
* Attempt to fix problem with users being able to convince the crontabDavid Malone2000-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 Notes: svn path=/head/; revision=68388
* Since -e and -r are right next to each other prompt before clobberingPaul Richards2000-10-151-0/+10
| | | | | | | a crontab you were planning to edit. Notes: svn path=/head/; revision=67127
* Call login_close() to prevent parent from memory leaking in someAndrey A. Chernov2000-07-022-0/+4
| | | | | | | cases due to vfork() Notes: svn path=/head/; revision=62376
* Prevent user from breaking his limits and restrictions orAndrey A. Chernov2000-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 Notes: svn path=/head/; revision=62367
* Make sure argv gets NULL terminated if cron entry has >= MAX_ARGS argumentsAndrey A. Chernov2000-07-011-0/+1
| | | | | | | Obtained from: OpenBSD popen.c v1.3 Notes: svn path=/head/; revision=62365
* Enable SIGCHLD to stop childs complaining to SIG_IGN of it.Andrey A. Chernov2000-07-011-1/+1
| | | | | | | | | It helps perl f.e. Obtained from: OpenBSD do_command.c v1.7 Notes: svn path=/head/; revision=62359
* Catch and report fdopen failures.Guy Helmer2000-05-231-0/+10
| | | | Notes: svn path=/head/; revision=60826