]> git.ipfire.org Git - thirdparty/fcron.git/commit
- Rewrote the env var management code with Vixie cron compatibility in mind
authorThibault Godouet <yo8192@users.noreply.github.com>
Sat, 9 Jan 2010 15:28:31 +0000 (15:28 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Sat, 9 Jan 2010 15:28:31 +0000 (15:28 +0000)
commit995227f512b49c6d6599f0bb3ba6048cb7c59f5b
tree6a996d6136cc6813bbe63bc551826c812d84b31f
parent0f592a6674b5c9fa9596a6b19d40f736eb798e59
- Rewrote the env var management code with Vixie cron compatibility in mind
 * new env_list_t type with associated functions
 * build some char **envp arrays and pass them to execle()
 * cleaner management of env var defined several times
 * don't inherit fcron's environment when running a job but build the environment from scratch
 * list the env var as X-Cron-Env headers in the job output emails
 * add Auto-Submitted headers to the job output emails (as cronie, i.e. cron on RedHat)
 * added a default path for jobs: /usr/bin:/bin (as Vixie cron)
 * ignore not only USER but LOGNAME assigments as well
 * added my_unsetenv() and my_setenv_overwrite() to make the direct manipulation (without env_list_t) of env var easier
- no longer try to run a job with execlp("sh", ...) if execl(curshell, ...) fails (as vixie cron)
- improved u_list: realloc() instead of free() followed by a calloc()
- debug_opt is now defined by log.c (instead of fcron.c/fcrontab.c/...)
27 files changed:
Makefile.in
conf.c
config.h.in
convert-fcrontab.c
database.c
doc/en/todo.sgml
env_list.c
env_list.h
fcron.c
fcron.h
fcrondyn.c
fcrondyn.h
fcronsighup.c
fcrontab.c
fcrontab.h
fileconf.c
global.h
job.c
job.h
log.c
log.h
read_string.c
save.c
subs.c
subs.h
temp_file.c
u_list.c