summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/crontab/crontab.c
Commit message (Collapse)AuthorAgeFilesLines
* /etc/crontab is similar enough to parse as correct if you runbrooks2006-01-101-0/+4
| | | | | | | | | "crontab /etc/crontab", but not the same format due to the who field. Add some limited anti-foot-shooting support and refuse to load /etc/crontab as someone's crontab. Users wishing shoot their foot in this manner may copy /etc/crontab elsewhere. :) MFC After: 1 week
* Ensure that edits that do not span a clock tick are not lost.dds2004-09-141-4/+13
| | | | | | PR: bin/22612 MT5: 4 weeks MT4: 2 weeks
* Refactoring: move two similar code blocks into a seprate function.dds2004-09-131-47/+31
|
* Fix for the following behavior:dds2004-09-131-4/+6
| | | | | | | | | | | | | $ crontab -e [Add an entry with an error in the crontab file.] crontab: errors in crontab file, can't install Do you want to retry the same edit? yes [Exit the editor without any changes.] crontab: no changes made to crontab [Entry is lost.] Now crontab will loop until the error is fixed, or the user answers no.
* Actually use the exitstatus value that we maintain.dd2002-10-011-1/+1
| | | | | PR: 43562 Submitted by: Marc Olzheim <marcolz@ilse.nl>
* 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
|
* 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.
* Add `_PATH_DEVZERO'.obrien2000-12-091-2/+3
| | | | Use _PATH_* where where possible.
* Attempt to fix problem with users being able to convince the crontabdwmalone2000-11-061-8/+12
| | | | | | | | | | | | | | | 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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Use err(3). Rewrote man page in mdoc format.charnier1997-09-151-112/+62
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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-171-8/+20
| | | | | | | | | | 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
* 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-051-4/+6
|
* 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)
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Now crontab works not only for vi editor, i.e. refers toache1994-12-211-14/+13
| | | | file name not to file fd
* Paul Vixie's cron, version 3.0. Munged into bmake format. If this goesjkh1994-08-271-0/+624
well, expect our two seperate directories for cron and crontab to go away shortly. Submitted by: jkh
OpenPOWER on IntegriCloud