]>
git.ipfire.org Git - thirdparty/fcron.git/log
Thibault Godouet [Sat, 24 Aug 2024 22:27:47 +0000 (23:27 +0100)]
Rename option displayname to maildisplayname.
Thibault Godouet [Sat, 24 Aug 2024 21:26:07 +0000 (22:26 +0100)]
Ignore test binary.
Thibault Godouet [Sat, 24 Aug 2024 21:25:45 +0000 (22:25 +0100)]
Move format_displayname() and make_mailbox_addr() into their own file.
Thibault Godouet [Sat, 24 Aug 2024 15:49:55 +0000 (16:49 +0100)]
Refactor maildisplayname.
Thibault Godouet [Sat, 24 Aug 2024 15:46:04 +0000 (16:46 +0100)]
Check for stdbool.h's availability.
Thibault Godouet [Sat, 24 Aug 2024 15:44:49 +0000 (16:44 +0100)]
Rename boolean variable names.
Thibault Godouet [Sat, 24 Aug 2024 08:13:59 +0000 (09:13 +0100)]
fix compilation error (couldn't find selinux.h)
Marco Emilio "sphakka" Poleggi [Sat, 24 Aug 2024 15:36:38 +0000 (17:36 +0200)]
Feature/fix email From: w/ configurable "displayname" (#17)
* WIP: add displayname option
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* Fix configure.in
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* Restored orig configure.in + displayname opt
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* job.c: create_mail():
Process 'displayname', etc. via new function 'make_mailbox()' as per RFC5322.
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* Fixed wrong formatting (tabs => spaces)
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* dev(code, doc, test): displayname handling refactored over two functions.
* code: config handling of displayname moved to a new function
'format_displayname()' in 'fcronconf.c'; buffer overflow check added. In
'job.c': restored old "From:" mail header behavior if no displayname; buffer
overflow check added.
* test: added prototype support in 'Makefile' and 'test/'
* doc: reviewed and cleaned 'en/fcron.conf.5.sgml'
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
* dev(code, test): @PR #17, 3rd round.
* Makefile(s): fixed alignement with spaces
* config.in: moved displayname in "Check for fcron..." section. Removed test
install code.
* fcronconf.c: changed format_displayname()'s arg to avoid confusion with
globals. Use stdbool. Use aux var when assigning from
format_displayname().
* crondyn_svr.c, fileconf.c: minimal fixes to avoid conflict with stdbool.
* fcron.conf.in: added comment for possible displayname's future default value.
* global.h: added stdbool.
* job.c: changed make_mailbox_addr()'s arg to avoid confusion with
globals. Use stdbool.
* test/mailbox_addr.c: rewritten with simpler explicit logic -- valgrinded
again ;-)
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
---------
Signed-off-by: Marco Emilio "sphakka" Poleggi <7766137+sphakka@users.noreply.github.com>
Thibault Godouet [Sat, 24 Aug 2024 08:41:08 +0000 (09:41 +0100)]
fixed doc entities runatresume/runatreboot
Thibault Godouet [Sun, 16 Jun 2024 14:56:39 +0000 (15:56 +0100)]
Add documentation on option runatresume.
Thibault Godouet [Wed, 29 May 2024 16:24:49 +0000 (17:24 +0100)]
Merge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Wed, 29 May 2024 16:24:28 +0000 (17:24 +0100)]
Fix bug where fcrondyn joins two output lines together if a shell command is too long.
Elliot Wolk [Mon, 1 Apr 2024 19:04:32 +0000 (15:04 -0400)]
Add compilation option to allow faster or even instant reload for non-root users (#26)
* fcrontab: refactor sig_daemon() reload delay, add seconds to msg
* configure: add opt to decrease or remove non-root tab reload
* fcrontab: enforce max-fcrontab-delay-seconds in delay for non-root user
* configure: rename max-fcrontab-load => max-fcrontab-reload
* configure: expand usage for max-delay-reload
* fcrontab: refactor fcrontab reload delay calculation for clarity
Elliot Wolk [Wed, 27 Mar 2024 17:33:03 +0000 (13:33 -0400)]
fcrondyn: include seconds in fcrondyn -x ls as "YYYY-mm-dd HH:MM:SS" (#27)
* fcrondyn: include seconds in `fcrondyn -x ls` as "YYYY-mm-dd HH:MM:SS"
commit
739d6ebe60a405daadcb0f5fe59ed991cf36c48f
Author: Elliot Wolk <elliot.wolk@gmail.com>
Date: 2011-10-04 03:37:10 -0400
added a script to install fcron, with numerous patches of my own
design to make it work, and to include seconds in fcrondyn
* fcrondyn: adjust SCHEDULE field header spacing
Thibault Godouet [Sat, 30 Sep 2023 15:37:29 +0000 (16:37 +0100)]
Add LICENSE at the root of the repository to make things clearer.
The license was already present under doc/ (e.g. doc/en/gpl.html) and mentioned at the top of each file of code, but having a license file in the root directory will make it clearer.
Thibault Godouet [Thu, 31 Aug 2023 12:51:51 +0000 (13:51 +0100)]
Add link to the doc as Github pages in README.
Thibault Godouet [Thu, 31 Aug 2023 12:31:28 +0000 (13:31 +0100)]
Merge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Thu, 31 Aug 2023 12:30:55 +0000 (13:30 +0100)]
Explain how to build the documentation in the README.
Thibault Godouet [Wed, 30 Aug 2023 14:51:14 +0000 (15:51 +0100)]
Fix permissions in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:48:49 +0000 (15:48 +0100)]
Fix token permission in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:38:15 +0000 (15:38 +0100)]
Add missing permission to publish doc.
Also merged the build and publish doc into one job.
Thibault Godouet [Wed, 30 Aug 2023 14:35:10 +0000 (15:35 +0100)]
Fix syntax error in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:34:00 +0000 (15:34 +0100)]
Added deploy to workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:13:58 +0000 (15:13 +0100)]
Use cleaner make doc command in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:12:57 +0000 (15:12 +0100)]
Fix make doc in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:08:42 +0000 (15:08 +0100)]
Explicitly disable sendmail in workflow.
Otherwise ./configure fails as sendmail isn't installed.
Thibault Godouet [Wed, 30 Aug 2023 14:04:55 +0000 (15:04 +0100)]
Create the configure script with autoconf in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:01:44 +0000 (15:01 +0100)]
Fixed package name in workflow.
Thibault Godouet [Wed, 30 Aug 2023 14:00:27 +0000 (15:00 +0100)]
Run apt as root in workflow.
Thibault Godouet [Wed, 30 Aug 2023 13:58:09 +0000 (14:58 +0100)]
Create workflow to generate documentation.
Thibault Godouet [Wed, 30 Aug 2023 13:34:25 +0000 (14:34 +0100)]
Add missing LDFLAGS on compiler command lines.
Thibault Godouet [Sun, 9 Jul 2023 20:51:24 +0000 (21:51 +0100)]
Fixed fcrondyn printing truncated strings.
Thibault Godouet [Sun, 9 Jul 2023 20:48:30 +0000 (21:48 +0100)]
Increment version from 3.3.1 to 3.3.2.
Thibault Godouet [Sun, 5 Dec 2021 18:18:25 +0000 (18:18 +0000)]
added 3.3.1 changelog
Thibault Godouet [Sun, 5 Dec 2021 18:07:09 +0000 (18:07 +0000)]
updated version to 3.3.1 and updated copyright years
Thibault Godouet [Sun, 5 Dec 2021 17:55:42 +0000 (17:55 +0000)]
fixed parsing of @reboot lines
atlant2011 [Mon, 9 Aug 2021 17:12:18 +0000 (00:12 +0700)]
remove old link to header selinux/flask.h and selinux/av_permissions.h and depend (#12)
* 1. remove link to header selinux/flask.h and selinux/av_permissions.h
2. simple move from constant's SECCLASS_FILE and FILE__ENTRYPOINT to functions string_to_security_class("file") and string_to_av_perm(tclass, "entrypoint")
3. NEED CHECK CORRECT RETURN AFTER FAILED RETURN FROM FUNCTION string_to_security_class ADN string_to_av_perm !
Link to info from libselinux
https://github.com/SELinuxProject/selinux/commit/
76913d8adb61b5 #diff-
046564229793ada24798dac3d2e479f07651ac9020d43938f3aa1fa9c9c24c9e
* read_conf() selinux: renamed vars and added error return
Co-authored-by: Thibault Godouet <yo8192@users.noreply.github.com>
David Stes [Tue, 4 May 2021 21:35:10 +0000 (23:35 +0200)]
Add SunOS case to sysVinitLauncher (#11)
Thibault Godouet [Fri, 16 Oct 2020 21:04:05 +0000 (22:04 +0100)]
Merge branch 'master' of github.com:yo8192/fcron
Thibault Godouet [Fri, 16 Oct 2020 20:58:40 +0000 (21:58 +0100)]
systemd: run systemctl daemon-reload to load unit files
Thibault Godouet [Fri, 16 Oct 2020 20:55:16 +0000 (21:55 +0100)]
systemd prefers programs to run in the foreground
Thibault Godouet [Fri, 16 Oct 2020 20:42:56 +0000 (21:42 +0100)]
added missing script/fcron.init.systemd.reboot.in
David Stes [Sat, 30 May 2020 10:02:39 +0000 (12:02 +0200)]
Add missing </listitem> (#5)
Eli Schwartz [Sun, 19 Apr 2020 08:36:22 +0000 (04:36 -0400)]
build: install programs as owner rw (#3)
Principle of least privilege suggests that for security-relevant
programs, no permissions other than those strictly necessary should be
applied. Hence the historic permissions for fcron were "executable, and
that's it". However, this causes problems for some legitimate use cases,
such as analysis of soname dependencies via readelf, use of strip, etc.
Slightly relax the install permissions to grant the owner, at least, rw
permissions. The owner can already trivially obtain these permissions at
will using chown, this merely saves them the bother.
Fixes #2
Thibault Godouet [Sat, 1 Feb 2020 14:30:13 +0000 (14:30 +0000)]
fixed various invalid XML issues
Thibault Godouet [Sat, 30 Jun 2018 21:37:17 +0000 (22:37 +0100)]
fixed @reboot on systemd
Thibault Godouet [Sat, 30 Jun 2018 21:35:05 +0000 (22:35 +0100)]
template pidfile and config instead of static value in sysVinit-launcher.in
Thibault Godouet [Mon, 29 May 2017 12:53:39 +0000 (13:53 +0100)]
use gender neutral 'their' in doc
Thibault Godouet [Sat, 11 Feb 2017 10:20:17 +0000 (10:20 +0000)]
use strip command from configure (thanks Luca Tavanti)
Thibault Godouet [Sat, 19 Nov 2016 21:06:12 +0000 (21:06 +0000)]
fixed bug preventing audit from being disabled -- thanks Thomas Deutschmann
Thibault Godouet [Sun, 14 Aug 2016 09:51:00 +0000 (10:51 +0100)]
moved adhoc test away from main source code (not usable as is)
Thibault Godouet [Sun, 14 Aug 2016 09:09:37 +0000 (10:09 +0100)]
systemd init: added LimitCORE
Thibault Godouet [Sun, 14 Aug 2016 08:58:56 +0000 (09:58 +0100)]
added is_loop_in_queue() for debug purposes
Thibault Godouet [Sun, 14 Aug 2016 08:57:35 +0000 (09:57 +0100)]
updated changelog: systemd was retro-ported to 3.2.1
Thibault Godouet [Sat, 30 Jul 2016 16:17:59 +0000 (17:17 +0100)]
comment improvements
Thibault Godouet [Sat, 30 Jul 2016 16:17:26 +0000 (17:17 +0100)]
use job_queue_remove()
Thibault Godouet [Sun, 26 Jun 2016 17:41:34 +0000 (18:41 +0100)]
mark as dev release
Thibault Godouet [Sun, 26 Jun 2016 17:39:33 +0000 (18:39 +0100)]
Merge branch 'suspend'
Thibault Godouet [Sun, 12 Jun 2016 21:26:53 +0000 (22:26 +0100)]
boot-install now supports systemd (and refactored while I was at it)
Thibault Godouet [Sun, 26 Jun 2016 15:13:34 +0000 (16:13 +0100)]
updated copyright years to 2000-2016
Thibault Godouet [Sun, 26 Jun 2016 14:56:00 +0000 (15:56 +0100)]
added runatresume / @resume
Thibault Godouet [Sun, 12 Jun 2016 21:26:53 +0000 (22:26 +0100)]
boot-install now supports systemd (and refactored while I was at it)
Thibault Godouet [Sun, 12 Jun 2016 20:28:28 +0000 (21:28 +0100)]
On Linux, use specific system APIs to detect suspend/resume and measure suspend duration
Thibault Godouet [Sun, 12 Jun 2016 10:25:59 +0000 (11:25 +0100)]
refactored suspend handling code into suspend.[ch]
Also applied code style.
Thibault Godouet [Sun, 12 Jun 2016 09:32:03 +0000 (10:32 +0100)]
refactored socket.[ch] into select.[ch] and fcrondyn_srv.[ch]
This is to prepare for getting notifed of time changes via timerfd_create() and select ()
Thibault Godouet [Thu, 9 Jun 2016 14:59:20 +0000 (15:59 +0100)]
Merge branch 'master' into suspend
Thibault Godouet [Thu, 9 Jun 2016 08:36:43 +0000 (09:36 +0100)]
Fixed occasional 1s slippage. Disable fcrondyn if we don't have gettimeofday() (or it won't work anyway)
This was due to a race condition between when time_to_sleep is run and when we compute how long to sleep for, which could happen in the following second: if that happened we end up sleeping for 1s instead of not sleeping at all. The fix was to replace time_to_sleep() by next_wake_time().
Thibault Godouet [Tue, 7 Jun 2016 19:56:08 +0000 (20:56 +0100)]
grammar error in doc
Thibault Godouet [Tue, 7 Jun 2016 19:55:19 +0000 (20:55 +0100)]
install-restart: use service (works with systemd) instead of /etc/init.d/fcron
Thibault Godouet [Sun, 5 Jun 2016 17:47:42 +0000 (18:47 +0100)]
force background for systemd (e.g. if debug mode enabled)
Thibault Godouet [Mon, 2 May 2016 09:33:40 +0000 (10:33 +0100)]
recv() returns ssize_t (not size_t)
Thibault Godouet [Mon, 2 May 2016 08:30:47 +0000 (09:30 +0100)]
fixed typo in install doc
Thibault Godouet [Fri, 12 Jun 2015 21:54:50 +0000 (22:54 +0100)]
added my_time() to use the more accurate (at least on recent Linux systems) gettimeofday() where it is available
Thibault Godouet [Fri, 12 Jun 2015 20:18:24 +0000 (21:18 +0100)]
added min/max convenience functions
Thibault Godouet [Wed, 10 Jun 2015 21:18:34 +0000 (22:18 +0100)]
@-line can now be run every second
Thibault Godouet [Sun, 12 Oct 2014 10:20:04 +0000 (11:20 +0100)]
Set From: header on emails. Added mailfrom() option.
Thibault Godouet [Sun, 12 Oct 2014 10:19:47 +0000 (11:19 +0100)]
change version to 3.2.1
Thibault Godouet [Sun, 5 Oct 2014 08:39:48 +0000 (09:39 +0100)]
Merge branch 'master' of ssh://git.tuxfamily.org/gitroot/fcron/fcron
Thibault Godouet [Sun, 5 Oct 2014 08:26:09 +0000 (09:26 +0100)]
updated to-do list
Thibault Godouet [Fri, 19 Sep 2014 18:18:57 +0000 (19:18 +0100)]
Updated to-do list
Thibault Godouet [Tue, 26 Aug 2014 21:01:47 +0000 (22:01 +0100)]
Added note in install doc about fcron's user and group
Thibault Godouet [Sun, 6 Jul 2014 10:06:36 +0000 (11:06 +0100)]
updated change logs
Thibault Godouet [Sun, 29 Jun 2014 16:36:58 +0000 (17:36 +0100)]
Close pipe in job.c even if there is an error reading it, to avoid a fd leak (thanks Pavel Stano)
Thibault Godouet [Sun, 15 Jun 2014 20:26:11 +0000 (21:26 +0100)]
Improve support for hardware suspend (to memory or to disk)
Thibault Godouet [Thu, 12 Jun 2014 13:10:24 +0000 (14:10 +0100)]
quote job shell commands in logs to make the messages clearer
Thibault Godouet [Thu, 12 Jun 2014 07:42:28 +0000 (08:42 +0100)]
Use '|' as the separator of fcrondyn columns (clearer than a space)
Thibault Godouet [Wed, 11 Jun 2014 09:01:52 +0000 (10:01 +0100)]
don't fully disable @-line on apparent nextexe integer overflows: instead set nextexe=now+cl_runfreq
Thibault Godouet [Mon, 9 Jun 2014 18:10:32 +0000 (19:10 +0100)]
Updated version, release notes
Thibault Godouet [Mon, 9 Jun 2014 17:09:02 +0000 (18:09 +0100)]
print dates and time in standard formats.
Thibault Godouet [Sun, 11 May 2014 09:43:27 +0000 (10:43 +0100)]
added to-do entry
Thibault Godouet [Sat, 10 May 2014 17:20:03 +0000 (18:20 +0100)]
don't include debug files in tar
Thibault Godouet [Sat, 10 May 2014 17:19:43 +0000 (18:19 +0100)]
increased version number
Thibault Godouet [Sat, 10 May 2014 17:14:52 +0000 (18:14 +0100)]
updated copyright years to 2000-2014
Thibault Godouet [Fri, 18 Apr 2014 17:31:43 +0000 (18:31 +0100)]
remove extra "\n" in fcron log messages about fcrondyn connections
Thibault Godouet [Fri, 18 Apr 2014 15:56:23 +0000 (16:56 +0100)]
Fixed SELinux issue with Linux user being used instead of the SELinux user
Thibault Godouet [Tue, 15 Apr 2014 23:05:50 +0000 (00:05 +0100)]
fcrontab no longer crashes if mailto is empty -- fixed issues with string options
Thibault Godouet [Sun, 13 Apr 2014 17:57:10 +0000 (18:57 +0100)]
fcrondyn with readline no longer crashes when receiving EOF
Thibault Godouet [Sun, 13 Apr 2014 17:48:17 +0000 (18:48 +0100)]
fixed minor bug in fcronsighup: no need to close() after fclose() on stream from fdopen()
Thibault Godouet [Sun, 13 Apr 2014 16:54:05 +0000 (17:54 +0100)]
fcrondyn -x no longer print null characters at the end of the command output
Thibault Godouet [Sun, 13 Apr 2014 16:50:44 +0000 (17:50 +0100)]
applied indent