]> git.ipfire.org Git - thirdparty/fcron.git/log
thirdparty/fcron.git
14 years agoMerge branch 'fcron-3.0'
Thibault Godouet [Sat, 12 Mar 2011 12:46:31 +0000 (12:46 +0000)] 
Merge branch 'fcron-3.0'

Conflicts:
.gitignore
doc/en/changes.sgml

14 years agoFixed bug with step incorrectly parsed for months on & lines
Thibault Godouet [Sat, 12 Mar 2011 12:37:09 +0000 (12:37 +0000)] 
Fixed bug with step incorrectly parsed for months on & lines

14 years agoRemoved unused environ variable
Thibault Godouet [Sun, 26 Sep 2010 18:26:13 +0000 (19:26 +0100)] 
Removed unused environ variable

14 years agoAdded Content-Type and Content-Transfer-Encoding to output emails
Thibault Godouet [Sat, 25 Sep 2010 12:39:14 +0000 (13:39 +0100)] 
Added Content-Type and Content-Transfer-Encoding to output emails

14 years agoUpdated doc: todo, FAQ entry on anacron, runatreboot example
Thibault Godouet [Fri, 24 Sep 2010 16:10:04 +0000 (17:10 +0100)] 
Updated doc: todo, FAQ entry on anacron, runatreboot example

14 years agoMerge branch 'fcron-3.0'
Thibault Godouet [Fri, 24 Sep 2010 15:09:36 +0000 (16:09 +0100)] 
Merge branch 'fcron-3.0'
Fixed some typos related to env var in job.c

Conflicts:
configure
configure.in
doc/en/todo.sgml
fcrondyn.c
fcrontab.c
read_string.c
subs.c

14 years agoUpdated copyright years to 2010
Thibault Godouet [Fri, 24 Sep 2010 12:56:01 +0000 (13:56 +0100)] 
Updated copyright years to 2010

14 years agoAdded options runatreboot, runonce, rebootreset, and cron-like shortcuts @reboot...
Thibault Godouet [Wed, 22 Sep 2010 23:40:03 +0000 (00:40 +0100)] 
Added options runatreboot, runonce, rebootreset, and cron-like shortcuts @reboot/@hourly/@monthly/...
Save cl_first for all @-lines (we only did it for volatile lines in the past)
added function mail_notrun_time_t()
added function free_line()
added function job_queue_remove()
added function init_default_line()

15 years agoFixed typo in fcrontab.5
Thibault Godouet [Sun, 6 Jun 2010 20:39:30 +0000 (21:39 +0100)] 
Fixed typo in fcrontab.5

15 years agoFixed fcron.conf path to install from in Makefile (generated file -> not in $SRCDIR) ver3_0_6
Thibault Godouet [Mon, 5 Apr 2010 19:20:08 +0000 (20:20 +0100)] 
Fixed fcron.conf path to install from in Makefile (generated file -> not in $SRCDIR)

15 years agoUpdated changes
Thibault Godouet [Mon, 5 Apr 2010 19:00:59 +0000 (20:00 +0100)] 
Updated changes

15 years agoAllow user to specify a fcron.conf file in check_system_crontabs.sh
Thibault Godouet [Mon, 5 Apr 2010 18:59:44 +0000 (19:59 +0100)] 
Allow user to specify a fcron.conf file in check_system_crontabs.sh

15 years agoRemoving bashims in check_system_crontabs
Thibault Godouet [Mon, 5 Apr 2010 18:44:11 +0000 (19:44 +0100)] 
Removing bashims in check_system_crontabs

15 years agoLinked mail and forcemail: mail(no) implies forcemail(no) and forcemail(true) implies...
Thibault Godouet [Mon, 5 Apr 2010 17:40:25 +0000 (18:40 +0100)] 
Linked mail and forcemail: mail(no) implies forcemail(no) and forcemail(true) implies mail(true)

15 years agoIgnore auto-generated files
Thibault Godouet [Mon, 5 Apr 2010 16:56:28 +0000 (17:56 +0100)] 
Ignore auto-generated files

15 years agoInitialize fcrontab's PAM with runas and not user so as things works fine when user...
Thibault Godouet [Mon, 5 Apr 2010 12:37:27 +0000 (13:37 +0100)] 
Initialize fcrontab's PAM with runas and not user so as things works fine when user=systab (pseudo-user)

15 years agoFixed bug preventing normal user from running fcrontab -l if fcron's uid!=gid
Thibault Godouet [Sat, 27 Mar 2010 15:06:40 +0000 (15:06 +0000)] 
Fixed bug preventing normal user from running fcrontab -l if fcron's uid!=gid

15 years agoChanged version to 3.0.6
Thibault Godouet [Sat, 6 Mar 2010 10:40:20 +0000 (10:40 +0000)] 
Changed version to 3.0.6

15 years agoFixed warning on freopen() return value not checked ver3_0_5
Thibault Godouet [Sat, 6 Mar 2010 10:37:58 +0000 (10:37 +0000)] 
Fixed warning on freopen() return value not checked

15 years agoFixed compilation warnings
Thibault Godouet [Mon, 1 Mar 2010 09:11:46 +0000 (09:11 +0000)] 
Fixed compilation warnings

15 years agoUpdated Makefile to ignore git files when tarring up -- also don't ci on make tar...
Thibault Godouet [Mon, 1 Mar 2010 09:11:16 +0000 (09:11 +0000)] 
Updated Makefile to ignore git files when tarring up -- also don't ci on make tar anymore

15 years agoAdded missing bitstring.3 man page
Thibault Godouet [Sun, 28 Feb 2010 23:20:52 +0000 (23:20 +0000)] 
Added missing bitstring.3 man page

15 years agoUpdated copyright to 2008-2010
Thibault Godouet [Sun, 28 Feb 2010 23:16:47 +0000 (23:16 +0000)] 
Updated copyright to 2008-2010
Updated changes

15 years agoFixed fcrontab when running without seteuid()
Thibault Godouet [Sun, 28 Feb 2010 22:48:40 +0000 (22:48 +0000)] 
Fixed fcrontab when running without seteuid()
updated configure with new version of autoconf

15 years ago- fcrontab: drop all privileges and only get them back when necessary
Thibault Godouet [Sun, 28 Feb 2010 20:59:38 +0000 (20:59 +0000)] 
- fcrontab: drop all privileges and only get them back when necessary
- fcrondyn: drop sgid privileges as well as soon as they are not necessary anymore
- fixed a couple gcc warnings

15 years agoImproved fcrontab security fix which allowed to read file readable by the group fcron
Thibault Godouet [Wed, 24 Feb 2010 23:40:59 +0000 (23:40 +0000)] 
Improved fcrontab security fix which allowed to read file readable by the group fcron

15 years agoFixed fcrontab vulnerability that would let an ill-intended user read files that...
Thibault Godouet [Wed, 24 Feb 2010 00:27:12 +0000 (00:27 +0000)] 
Fixed fcrontab vulnerability that would let an ill-intended user read files that the user fcron can read

15 years agoMerge branch 'master' of ssh://yo4096@git.tuxfamily.org/gitroot/fcron/fcron
Thibault Godouet [Sat, 16 Jan 2010 19:50:45 +0000 (19:50 +0000)] 
Merge branch 'master' of ssh://yo4096@git.tuxfamily.org/gitroot/fcron/fcron

15 years agoAdditional comment on bitstring.h
Thibault Godouet [Sat, 16 Jan 2010 19:50:15 +0000 (19:50 +0000)] 
Additional comment on bitstring.h

15 years agoMerge branch 'master' of ssh://yo4096@git.tuxfamily.org/gitroot/fcron/fcron
Thibault Godouet [Sat, 16 Jan 2010 10:46:00 +0000 (10:46 +0000)] 
Merge branch 'master' of ssh://yo4096@git.tuxfamily.org/gitroot/fcron/fcron

Conflicts:
doc/en/todo.sgml
read_string.c

15 years agoMoved fcron.conf code from sub.{c,h} to fcronconf.{c,h}
Thibault Godouet [Sat, 16 Jan 2010 10:33:33 +0000 (10:33 +0000)] 
Moved fcron.conf code from sub.{c,h} to fcronconf.{c,h}

15 years ago- removed Flush() macro (replaced by free_safe())
Thibault Godouet [Sun, 10 Jan 2010 17:11:13 +0000 (17:11 +0000)] 
- removed Flush() macro (replaced by free_safe())
- added alloc_safe() and realloc_safe(): wrappers around calloc() and realloc() that die on error
- checked the code to use free_safe(), Set(),  Alloc(), alloc_safe() and realloc_safe() whenever appropriate

15 years ago- Rewrote the env var management code with Vixie cron compatibility in mind
Thibault Godouet [Sat, 9 Jan 2010 15:28:31 +0000 (15:28 +0000)] 
- 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/...)

15 years agoInital implementation of a new env var type env_list_t based on u_list
Thibault Godouet [Wed, 30 Dec 2009 22:50:36 +0000 (22:50 +0000)] 
Inital implementation of a new env var type env_list_t based on u_list

15 years agoFixed --with-sendmail bug: sendmail was disabled if not explicitely set
Thibault Godouet [Wed, 30 Dec 2009 22:46:58 +0000 (22:46 +0000)] 
Fixed --with-sendmail bug: sendmail was disabled if not explicitely set

15 years ago- use realloc() when growing u_list
Thibault Godouet [Wed, 30 Dec 2009 22:44:01 +0000 (22:44 +0000)] 
- use realloc() when growing u_list
- added function to copy u_list
- added function to know if we are in an iteration

15 years agoMerge branch 'master' of ssh://yo4096@git.tuxfamily.org/gitroot/fcron/fcron
Thibault Godouet [Tue, 8 Dec 2009 22:38:07 +0000 (22:38 +0000)] 
Merge branch 'master' of ssh://yo4096@git.tuxfamily.org/gitroot/fcron/fcron

15 years agoFixed some gcc warnings (first char of string array referenced as var instead of...
Thibault Godouet [Tue, 8 Dec 2009 22:30:11 +0000 (22:30 +0000)] 
Fixed some gcc warnings (first char of string array referenced as var instead of var[0]

16 years agoAdded option jitter
Thibault Godouet [Sun, 29 Mar 2009 20:31:53 +0000 (21:31 +0100)] 
Added option jitter

16 years agofixed configure script so as the usage of sendmail can be disabled (previously it...
Thibault Godouet [Sun, 15 Feb 2009 17:08:40 +0000 (17:08 +0000)] 
fixed configure script so as the usage of sendmail can be disabled (previously it would then try to run "no"!)

16 years agoImplemented socket authentication without password for Solaris 10, OpenBSD and FreeBS...
Thibault Godouet [Sun, 15 Feb 2009 14:40:58 +0000 (14:40 +0000)] 
Implemented socket authentication without password for Solaris 10, OpenBSD and FreeBSD (untested)

16 years agoMake git ignore automatically generated documentation files.
Thibault Godouet [Mon, 9 Feb 2009 22:36:29 +0000 (22:36 +0000)] 
Make git ignore automatically generated documentation files.
(we were ignoring the folders but not their content and thus we were getting warnings)

16 years agoremoved generated file 'configure'
Thibault Godouet [Mon, 9 Feb 2009 22:33:20 +0000 (22:33 +0000)] 
removed generated file 'configure'

16 years agoupdated copyright years (from 2000-2008 to 2000-2009)
Thibault Godouet [Mon, 9 Feb 2009 22:28:34 +0000 (22:28 +0000)] 
updated copyright years (from 2000-2008 to 2000-2009)

16 years agoImplemented fcrondyn client authentication through Linux getsockopt(SO_PEERCRED).
Thibault Godouet [Mon, 9 Feb 2009 00:33:39 +0000 (00:33 +0000)] 
Implemented fcrondyn client authentication through Linux getsockopt(SO_PEERCRED).
Updated copyright years to include 2009

16 years agoPatched startup script to make it more compliant to the LSB
Thibault Godouet [Sun, 1 Feb 2009 16:44:34 +0000 (16:44 +0000)] 
Patched startup script to make it more compliant to the LSB

16 years agoMerged patch to make the startup script more compliant to the LSB
Thibault Godouet [Sun, 1 Feb 2009 16:34:17 +0000 (16:34 +0000)] 
Merged patch to make the startup script more compliant to the LSB

16 years agoHave git ignore auto-generated file 'configure'
Thibault Godouet [Sat, 31 Jan 2009 13:35:56 +0000 (13:35 +0000)] 
Have git ignore auto-generated file 'configure'

16 years agoHave git ignore auto-generated configure file
Thibault Godouet [Sat, 31 Jan 2009 12:29:19 +0000 (12:29 +0000)] 
Have git ignore auto-generated configure file

16 years agoAdded some missing end_iteration()s.
Thibault Godouet [Tue, 23 Dec 2008 23:42:58 +0000 (23:42 +0000)] 
Added some missing end_iteration()s.

16 years ago- Started to work on fifo_list to be used as serial_queue
Thibault Godouet [Sun, 9 Nov 2008 16:24:04 +0000 (16:24 +0000)] 
- Started to work on fifo_list to be used as serial_queue

16 years agoAdded exe_list and lavg_list based on the new u_list (unordered lists) as a way to...
Thibault Godouet [Fri, 17 Oct 2008 14:15:31 +0000 (15:15 +0100)] 
Added exe_list and lavg_list based on the new u_list (unordered lists) as a way to clean-up the code and make it easier to maintain

16 years agoAdded exe_list and lavg_list based on u_list (unordered list)
Thibault Godouet [Fri, 17 Oct 2008 14:14:20 +0000 (15:14 +0100)] 
Added exe_list and lavg_list based on u_list (unordered list)

16 years agofcrontab: chdir to tmp_path before executing the editor (some needs to be able to...
Thibault Godouet [Mon, 22 Sep 2008 18:17:18 +0000 (19:17 +0100)] 
fcrontab: chdir to tmp_path before executing the editor (some needs to be able to get information on current dir!) + make git ignore *~ files

16 years agoChanged copyright dates to 2000-2008 (was actually not included in previous commit)
Thibault Godouet [Sun, 21 Sep 2008 21:20:14 +0000 (22:20 +0100)] 
Changed copyright dates to 2000-2008 (was actually not included in previous commit)

16 years agoAdded configure and install-sh into git and changed copyright dates to 2000-2008
Thibault Godouet [Sun, 21 Sep 2008 21:18:14 +0000 (22:18 +0100)] 
Added configure and install-sh into git and changed copyright dates to 2000-2008

16 years ago*** empty log message ***
Thibault Godouet [Sun, 21 Sep 2008 17:46:45 +0000 (17:46 +0000)] 
*** empty log message ***

16 years agoIncreased maximum number of fcrontab entries to 1024
Thibault Godouet [Sun, 21 Sep 2008 17:44:12 +0000 (17:44 +0000)] 
Increased maximum number of fcrontab entries to 1024

16 years agoFixed minor bug: we used to accept max_entries+1
Thibault Godouet [Sun, 21 Sep 2008 17:40:34 +0000 (17:40 +0000)] 
Fixed minor bug: we used to accept max_entries+1

17 years ago*** empty log message ***
Thibault Godouet [Sun, 11 May 2008 15:06:02 +0000 (15:06 +0000)] 
*** empty log message ***

17 years agorun_job() now returns an int. It returns ERR if it couldn't fork so as the calling...
Thibault Godouet [Sun, 11 May 2008 15:04:04 +0000 (15:04 +0000)] 
run_job() now returns an int. It returns ERR if it couldn't fork so as the calling function can remove the relevant entry from exe_array. Previously the job would have been thought to be running until fcron restart.

17 years ago*** empty log message ***
Thibault Godouet [Sun, 11 May 2008 11:09:29 +0000 (11:09 +0000)] 
*** empty log message ***

17 years agodo not test errno after getgrnam() (it shouldn't be tested and it was created problem...
Thibault Godouet [Sun, 11 May 2008 11:08:23 +0000 (11:08 +0000)] 
do not test errno after getgrnam() (it shouldn't be tested and it was created problems on some non-linux systems)

17 years agoadded a few constants for portability
Thibault Godouet [Sun, 11 May 2008 11:07:36 +0000 (11:07 +0000)] 
added a few constants for portability

17 years agobug fix: some system can have setenv() but not unsetenv()
Thibault Godouet [Sun, 11 May 2008 10:56:28 +0000 (10:56 +0000)] 
bug fix: some system can have setenv() but not unsetenv()

17 years agofixed bug when upgrading: remove fcrontab.sig file (if any) before we change the...
Thibault Godouet [Sun, 11 May 2008 10:55:39 +0000 (10:55 +0000)] 
fixed bug when upgrading: remove fcrontab.sig file (if any) before we change the rights of the files to root:root 600, or it could not get removed by fcronsighup later on

17 years agobetter portability: some system can define setenv but not unsetenv
Thibault Godouet [Sun, 11 May 2008 10:48:34 +0000 (10:48 +0000)] 
better portability: some system can define setenv but not unsetenv
use AC_SEARCH_LIB to simplify code

17 years ago*** empty log message ***
Thibault Godouet [Sun, 11 May 2008 10:46:54 +0000 (10:46 +0000)] 
*** empty log message ***

17 years agofixed the order of the options so as they are in alphabetical order ver3_0_4
Thibault Godouet [Wed, 7 Nov 2007 09:28:45 +0000 (09:28 +0000)] 
fixed the order of the options so as they are in alphabetical order

17 years agofixed fcron description
Thibault Godouet [Wed, 7 Nov 2007 09:26:54 +0000 (09:26 +0000)] 
fixed fcron description

17 years agofixed bug: was importing 'functions' from /etc/rc.d/init.d instead of /etc/init.d...
Thibault Godouet [Wed, 7 Nov 2007 09:26:01 +0000 (09:26 +0000)] 
fixed bug: was importing 'functions' from /etc/rc.d/init.d instead of /etc/init.d (or trying to !!)

17 years ago added option erroronlymail
Thibault Godouet [Wed, 7 Nov 2007 09:24:43 +0000 (09:24 +0000)] 
 added option erroronlymail

17 years ago*** empty log message ***
Thibault Godouet [Wed, 7 Nov 2007 09:24:38 +0000 (09:24 +0000)] 
*** empty log message ***

17 years agoadded option erroronlymail
Thibault Godouet [Wed, 7 Nov 2007 09:23:50 +0000 (09:23 +0000)] 
added option erroronlymail

17 years agoInitial revision
Thibault Godouet [Wed, 7 Nov 2007 09:17:03 +0000 (09:17 +0000)] 
Initial revision

17 years agoadded option erroronlymail
Thibault Godouet [Wed, 7 Nov 2007 09:16:40 +0000 (09:16 +0000)] 
added option erroronlymail

17 years agofixed variable 'seed' assignement: was using ^= instead of =
Thibault Godouet [Wed, 7 Nov 2007 09:15:40 +0000 (09:15 +0000)] 
fixed variable 'seed' assignement: was using ^= instead of =

17 years agomade the conditions of a complicated if() clearer
Thibault Godouet [Wed, 7 Nov 2007 09:15:02 +0000 (09:15 +0000)] 
made the conditions of a complicated if() clearer

17 years agoinstall only one file at a time for solaris compatibility
Thibault Godouet [Sun, 14 Oct 2007 15:07:46 +0000 (15:07 +0000)] 
install only one file at a time for solaris compatibility

17 years ago*** empty log message ***
Thibault Godouet [Sun, 14 Oct 2007 15:07:43 +0000 (15:07 +0000)] 
*** empty log message ***

17 years agocheck for errors when using (f)close()
Thibault Godouet [Sun, 14 Oct 2007 14:59:01 +0000 (14:59 +0000)] 
check for errors when using (f)close()

17 years agoadded seconds to debug messages for better precision and consistency with other debug...
Thibault Godouet [Sun, 14 Oct 2007 14:58:07 +0000 (14:58 +0000)] 
added seconds to debug messages for better precision and consistency with other debug messages

17 years agoinstall only one file at a time for compatibility with solaris
Thibault Godouet [Sun, 14 Oct 2007 14:57:29 +0000 (14:57 +0000)] 
install only one file at a time for compatibility with solaris

17 years agoadded seconds to debug message for better precision and consistency with other debug...
Thibault Godouet [Sun, 14 Oct 2007 14:56:54 +0000 (14:56 +0000)] 
added seconds to debug message for better precision and consistency with other debug messages

17 years agoadded a search for strip compatible with solaris
Thibault Godouet [Sun, 14 Oct 2007 14:56:29 +0000 (14:56 +0000)] 
added a search for strip compatible with solaris

17 years agofixed bug which would prevent fcron process from writing pid for of its child for...
Thibault Godouet [Sun, 14 Oct 2007 12:42:07 +0000 (12:42 +0000)] 
fixed bug which would prevent fcron process from writing pid for of its child for the parent (were closing a file twice, which produced relatively random errors)
cleaned up file closure: test for errors from close()/fclose()

18 years agofixed goto_non_matching() which thought erroneously that the period was exceeded...
Thibault Godouet [Sun, 24 Jun 2007 22:01:54 +0000 (22:01 +0000)] 
fixed goto_non_matching() which thought erroneously that the period was exceeded and would thus return the last minute of the current period
rewrote goto_non_matching() into move_time_to() in a clearer and surer code

18 years agouse hostname and tv_usec to initialize random number generator
Thibault Godouet [Sun, 24 Jun 2007 22:01:22 +0000 (22:01 +0000)] 
use hostname and tv_usec to initialize random number generator

18 years ago*** empty log message ***
Thibault Godouet [Sun, 24 Jun 2007 21:58:46 +0000 (21:58 +0000)] 
*** empty log message ***

18 years ago*** empty log message *** ver3_0_3
Thibault Godouet [Sun, 3 Jun 2007 21:41:38 +0000 (21:41 +0000)] 
*** empty log message ***

18 years ago*** empty log message ***
Thibault Godouet [Sun, 3 Jun 2007 21:26:24 +0000 (21:26 +0000)] 
*** empty log message ***

18 years ago*** empty log message ***
Thibault Godouet [Sun, 3 Jun 2007 18:01:52 +0000 (18:01 +0000)] 
*** empty log message ***

18 years agobetter getpwnam() error handling ver3_0_3-rc1
Thibault Godouet [Sun, 3 Jun 2007 17:52:34 +0000 (17:52 +0000)] 
better getpwnam() error handling

18 years agoCheck that make is GNU make and not another one
Thibault Godouet [Sun, 3 Jun 2007 17:49:37 +0000 (17:49 +0000)] 
Check that make is GNU make and not another one

18 years agobetter error handling getpwnam()
Thibault Godouet [Sun, 3 Jun 2007 17:49:01 +0000 (17:49 +0000)] 
better error handling getpwnam()

18 years ago*** empty log message ***
Thibault Godouet [Sun, 3 Jun 2007 17:48:23 +0000 (17:48 +0000)] 
*** empty log message ***

18 years ago*** empty log message ***
Thibault Godouet [Sat, 14 Apr 2007 18:13:43 +0000 (18:13 +0000)] 
*** empty log message ***

18 years ago*** empty log message ***
Thibault Godouet [Sat, 14 Apr 2007 18:04:05 +0000 (18:04 +0000)] 
*** empty log message ***

18 years agoupdated copyright years
Thibault Godouet [Sat, 14 Apr 2007 17:50:36 +0000 (17:50 +0000)] 
updated copyright years

18 years ago*** empty log message ***
Thibault Godouet [Sat, 14 Apr 2007 17:46:40 +0000 (17:46 +0000)] 
*** empty log message ***