/
nerfur
/
openbsd-src
ОбзорДокументацияВойти
/
nerfur
/
openbsd-src
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
openbsd-src/
usr.sbin/cron/
..
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@

11 лет назад
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.

год назад
client.c

Unused variable.

8 лет назад
config.h

remove some more ifdef maziness

11 лет назад
cron.8

I am retiring my old email address; replace it with my OpenBSD one.

8 лет назад
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@.

4 года назад
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@

11 лет назад
crontab.1

delete ridiculous DIAGNOSTICS section that goes without saying

7 лет назад
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 года назад
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.

3 года назад
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.

7 лет назад
do_command.c

repair a few more backwards compares that create headaches ok millert

4 года назад
entry.c

cron: use strtonum() and tighter limits on step values

2 года назад
env.c

repair a few more backwards compares that create headaches ok millert

4 года назад
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 лет назад
globals.h

Close the socket (and dfd) in at(1) child processes

9 лет назад
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 лет назад
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.

3 года назад
misc.c

repair a few more backwards compares that create headaches ok millert

4 года назад
pathnames.h

retire the old cron socket path; ok jca millert

8 лет назад
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.

7 лет назад
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 лет назад
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 лет назад