summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/lib/entry.c
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
* 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>
* 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>
* Catch and report memory allocation failures.ghelmer2000-05-231-3/+65
|
* 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>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Log run-time parsing errors nowache1997-11-021-4/+45
| | | | | | | | | | | | 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)
* Use err(3). Rewrote man page in mdoc format.charnier1997-09-151-1/+2
|
* 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.
* Check for expired passwords before allowing access to the system.mpp1995-08-281-1/+6
|
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Fix home dir cheatingache1995-04-121-5/+3
|
* Paul Vixie's cron, version 3.0. Munged into bmake format. If this goesjkh1994-08-271-0/+507
well, expect our two seperate directories for cron and crontab to go away shortly. Submitted by: jkh
OpenPOWER on IntegriCloud