#
2e6cac80 |
| 16-Apr-2020 |
millert <millert@openbsd.org> |
Add a mechanism to prevent cron jobs from running concurrently. This adds a new "-s" flag to the command field which indicates that only a single instance of the job should run concurrenty. OK beck@
Add a mechanism to prevent cron jobs from running concurrently. This adds a new "-s" flag to the command field which indicates that only a single instance of the job should run concurrenty. OK beck@ job@ deraadt@
show more ...
|
#
48565214 |
| 05-Feb-2018 |
millert <millert@openbsd.org> |
Pass a FILE * instead of a file descriptor into load_user() and perform the fclose() in process_crontab(). Previously we were closing the crontab fd twice--once in load_user() via fclose() and once
Pass a FILE * instead of a file descriptor into load_user() and perform the fclose() in process_crontab(). Previously we were closing the crontab fd twice--once in load_user() via fclose() and once in process_crontab(). OK tb@
show more ...
|
#
a9e807de |
| 07-Jun-2017 |
millert <millert@openbsd.org> |
In cron(8), require that crontab and at files in the spool be owned by group crontab. The at(1) command now creates files owned by group crontab, the crontab(1) command already does this.
Files in
In cron(8), require that crontab and at files in the spool be owned by group crontab. The at(1) command now creates files owned by group crontab, the crontab(1) command already does this.
Files in the crontab spool with parse errors are now ignored; crontab(1) will not install a crontab file with parse errors. The system crontab file (/etc/crontab) is not affected by this.
The required permissions on crontab files have been tightened. Files in the cron spool must be mode 0600 (as created by crontab(1)). The system crontab file may be readable/writable by the owner, readable by group and readable by other. The system crontab must be readable by the owner.
show more ...
|
#
b692241c |
| 30-Aug-2016 |
millert <millert@openbsd.org> |
Fix fd leak on error. OK jsg@
|
#
b8c5c73d |
| 15-Nov-2015 |
millert <millert@openbsd.org> |
Clean up the remaining uses of stderr and perror() and use warn/err and/or syslog depending on whether stderr is hooked up at the time. Also remove closelog() which is not needed since we are headed
Clean up the remaining uses of stderr and perror() and use warn/err and/or syslog depending on whether stderr is hooked up at the time. Also remove closelog() which is not needed since we are headed for exec. OK guenther@
show more ...
|
#
8a6f8ff3 |
| 09-Nov-2015 |
millert <millert@openbsd.org> |
queue(3) instead of homegrown queues and lists. This also fixes some potential memory leaks in error paths. OK guenther@
|
#
fa575ea2 |
| 04-Nov-2015 |
millert <millert@openbsd.org> |
Change cron from including all headers in every file to only including what each .c file needs. I have not removed cron.h since it will be used in a future clean up of the cron's .h files. OK nicm@
|
#
11834cab |
| 06-Oct-2015 |
tedu <tedu@openbsd.org> |
clear out some more legacy code and whatnot
|
#
8b04d302 |
| 09-Feb-2015 |
deraadt <deraadt@openbsd.org> |
correct copyright, upon approval from paul vixie via todd miller. the head copyright assertion was seperated from the remaining ones.
|
#
785ecd14 |
| 23-Jan-2015 |
tedu <tedu@openbsd.org> |
braces to open a function go on their own line like god intended
|
#
8260657d |
| 23-Jan-2015 |
tedu <tedu@openbsd.org> |
delete some code that doesn't (and shouldn't) run. ok deraadt millert
|
#
dd2fc19c |
| 23-Jan-2015 |
tedu <tedu@openbsd.org> |
Remove the OK and ERR macros. They obfuscate the code and don't help legibility. (unix system calls use 0 for ok, but hundreds of other projects use 1 to indicate success.) Despite the name, many sys
Remove the OK and ERR macros. They obfuscate the code and don't help legibility. (unix system calls use 0 for ok, but hundreds of other projects use 1 to indicate success.) Despite the name, many system calls (e.g., open) also return not OK values for success. It also cleans up some weird code like int crontab_fd = OK - 1; This diff is mechanical in nature. Later I will fix the bugs it reveals. ok deraadt
show more ...
|
#
585d9be6 |
| 23-Jan-2015 |
tedu <tedu@openbsd.org> |
remove debug code. I think the level of debug code in cron is excessive for a program that has reached feature complete. If cron needs to provide more information to the user about its operational st
remove debug code. I think the level of debug code in cron is excessive for a program that has reached feature complete. If cron needs to provide more information to the user about its operational status, I think syslog would be more appropriate. (The debug flags also disable forking into the background, so they aren't even that useful for debugging a live system.) ok deraadt millert
show more ...
|
#
4d4e2f5a |
| 22-Jan-2015 |
tedu <tedu@openbsd.org> |
delete useless casts. ok deraadt guenther millert
|
#
043fbe51 |
| 27-Oct-2009 |
deraadt <deraadt@openbsd.org> |
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (th
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
show more ...
|
#
a5198fa1 |
| 17-Jun-2004 |
millert <millert@openbsd.org> |
UUpdate ISC copyright year to 2004 Remove unused macros Skip_Line and MkLower Remove trailing whitespace
|
#
e134e629 |
| 20-Feb-2003 |
millert <millert@openbsd.org> |
Sync with ISC cron-current + my at(1) integration. The at(1) code is now more tightly integrated into the cron codebase.
|
#
d54c3a7c |
| 11-Jul-2002 |
millert <millert@openbsd.org> |
More syncing with my cron 4.0 patch tree, basically cosmetic: o change an instance of e_none to e_memory that I missed (forgot?) o kill some whitespace o modify malloc failure recovery a bit
|
#
c95ed473 |
| 08-Jul-2002 |
millert <millert@openbsd.org> |
Merge in some changes from Paul Vixie's tree; most are cosmetic o ANSI function headers o return (foo) not return foo o add -oi to sendmail flags o update email address in man pages o make some strin
Merge in some changes from Paul Vixie's tree; most are cosmetic o ANSI function headers o return (foo) not return foo o add -oi to sendmail flags o update email address in man pages o make some strings const o completely remove globbing cruft from popen.c o whitespace changes o add DOW_STAR to flags for "monthly", "weekly", and "daily" cron entries
show more ...
|
#
f454ebde |
| 18-Feb-2001 |
millert <millert@openbsd.org> |
Update to ISC cron 4.0b1 + our patches. This is now under a BSD license. I also fixed the signal handlers while I was at it.
|
#
bac4f837 |
| 01-Nov-1996 |
millert <millert@openbsd.org> |
Check malloc/strdup ret val and deal.
|
#
df930be7 |
| 18-Oct-1995 |
deraadt <deraadt@openbsd.org> |
initial import of NetBSD tree
|