buildroot.busybox.net archive mirror
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/dcron: fix /etc/cron.d/system cron jobs
@ 2022-09-02 22:28 Mario Haustein
  2022-09-24  8:30 ` Thomas Petazzoni
  2022-09-26 16:08 ` [Buildroot] [PATCH v2] " Mario Haustein
  0 siblings, 2 replies; 6+ messages in thread
From: Mario Haustein @ 2022-09-02 22:28 UTC (permalink / raw)
  To: buildroot; +Cc: Mario Haustein, Alvaro G . M

Jobs with the syntax @hourly, @daily, ... were not executed since the
recent version bump. This patch fixes the bug downstream.

Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
---
 package/dcron/0002-system-crontab.patch | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 package/dcron/0002-system-crontab.patch

diff --git a/package/dcron/0002-system-crontab.patch b/package/dcron/0002-system-crontab.patch
new file mode 100644
index 0000000000..5573c68111
--- /dev/null
+++ b/package/dcron/0002-system-crontab.patch
@@ -0,0 +1,23 @@
+commit 1fd99b71b063b1573beaf9f6b801ec5be2fbe24f
+Author: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
+Date:   Fri Sep 2 23:20:14 2022 +0200
+
+    Make @hourly, @daily, ... work again
+    
+    closes #15
+    
+    Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
+
+diff --git a/database.c b/database.c
+index 37cf17a..6ec720e 100644
+--- a/database.c
++++ b/database.c
+@@ -455,6 +455,8 @@ SynchronizeFile(const char *dpath, const char *fileName, const char *userName)
+ 							line.cl_Days[j] = 1;
+ 						for (j=0; j<12; ++j)
+ 							line.cl_Mons[j] = 1;
++						for (j=0; j<7; ++j)
++							line.cl_Dow[j] = ALL_DOW;
+ 					}
+ 
+ 					while (*ptr == ' ' || *ptr == '\t')
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-23 10:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-02 22:28 [Buildroot] [PATCH 1/1] package/dcron: fix /etc/cron.d/system cron jobs Mario Haustein
2022-09-24  8:30 ` Thomas Petazzoni
2022-09-26 16:15   ` Mario Haustein
2022-09-26 16:08 ` [Buildroot] [PATCH v2] " Mario Haustein
2023-04-17  6:48   ` Yann E. MORIN
2023-04-23 10:37   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).