tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
openbsd-src
/
usr.sbin
/
cron
/
at
jcs
23 files
Makefile
Use absolute paths in pathnames.h. There is no longer a need to chdir(2) to the cron dir and cron(8) now changes to / via daemon(3). We no longer try to create/chmod the spool directories as they should be set correctly at install time. The setegid(crontab) has been moved to open_socket() so it is closer to the chmod(2) call that needs it. OK deraadt@ tedu@
10 years ago
atrun.c
when processing readdir(), this incorrectly did fstatat() against "..". observed during experimental work with O_BELOW ok millert, who may want to refactor this further.
10 months ago
client.c
Unused variable.
7 years ago
config.h
remove some more ifdef maziness
10 years ago
cron.8
I am retiring my old email address; replace it with my OpenBSD one.
7 years ago
cron.c
Add a missing check for negative tv_sec when setting the timeout. Also clear the entire timeout if the remaining time becomes negative instead of just clearing tv_sec or tv_nsec. OK cheloha@.
3 years ago
cron.h
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@
10 years ago
crontab.1
delete ridiculous DIAGNOSTICS section that goes without saying
6 years ago
crontab.5
rework the "random" text: - add "~" to the valid field table, as pointed out by sthen - note that the value is generated whenever the tab is loaded, as requested by K R - clarify the text, as pointed out by deraadt
2 years ago
crontab.c
crontab: move spool temp file creation to spool_mkstemp() This fixes a bug introduced in rev 1.86 where if the second seteuid() call failed, a temporary file would be left in the spool directory.
2 years ago
database.c
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
6 years ago
do_command.c
repair a few more backwards compares that create headaches ok millert
3 years ago
entry.c
cron: use strtonum() and tighter limits on step values
2 years ago
env.c
repair a few more backwards compares that create headaches ok millert
3 years ago
funcs.h
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@
6 years ago
globals.h
Close the socket (and dfd) in at(1) child processes
8 years ago
job.c
Log skipped jobs in job_add() not job_runqueue(). We want to log when the job is added but will not be run, not every time the run queue is processed.
6 years ago
macros.h
Support random offsets when using ranges with a step value in cron. This extends the random range syntax to support step values. Instead of choosing a random number between the high and low values, the field is treated as a range with a random offset less than the step value. This can be used to avoid thundering herd problems where multiple machines contact a server all at the same time via cron jobs.
2 years ago
misc.c
repair a few more backwards compares that create headaches ok millert
3 years ago
pathnames.h
retire the old cron socket path; ok jca millert
7 years ago
popen.c
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
6 years ago
structs.h
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@
6 years ago
user.c
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@
6 years ago