summaryrefslogtreecommitdiff
path: root/sys-process/cronie-1.6.0/62e53f1cdb9c1e12a01ee7814c92cd937d50328d.patch
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-03-25 16:32:50 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-03-25 16:32:50 +0000
commit4aad60b7a46772342ce637ee77e7d606ca87dec1 (patch)
tree7e1e697121d5bae865342b590bdbc7c45f1b7253 /sys-process/cronie-1.6.0/62e53f1cdb9c1e12a01ee7814c92cd937d50328d.patch
parentRemove legacy GB API patch (diff)
downloadpatches-4aad60b7a46772342ce637ee77e7d606ca87dec1.tar.bz2
patches-4aad60b7a46772342ce637ee77e7d606ca87dec1.tar.xz
patches-4aad60b7a46772342ce637ee77e7d606ca87dec1.zip
Fix day-of-week ranges in cronie
Diffstat (limited to 'sys-process/cronie-1.6.0/62e53f1cdb9c1e12a01ee7814c92cd937d50328d.patch')
-rw-r--r--sys-process/cronie-1.6.0/62e53f1cdb9c1e12a01ee7814c92cd937d50328d.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/sys-process/cronie-1.6.0/62e53f1cdb9c1e12a01ee7814c92cd937d50328d.patch b/sys-process/cronie-1.6.0/62e53f1cdb9c1e12a01ee7814c92cd937d50328d.patch
new file mode 100644
index 0000000..160c031
--- /dev/null
+++ b/sys-process/cronie-1.6.0/62e53f1cdb9c1e12a01ee7814c92cd937d50328d.patch
@@ -0,0 +1,21 @@
+From 62e53f1cdb9c1e12a01ee7814c92cd937d50328d Mon Sep 17 00:00:00 2001
+From: w30023233 <wangyuhang27@huawei.com>
+Date: Wed, 23 Mar 2022 15:40:01 +0800
+Subject: [PATCH] Fix regression in handling 1-5 crontab entries
+
+---
+ src/entry.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/entry.c b/src/entry.c
+index e9e258b..bb7cb62 100644
+--- a/src/entry.c
++++ b/src/entry.c
+@@ -595,6 +595,7 @@ get_range(bitstr_t * bits, int low, int high, const char *names[],
+ return (EOF);
+
+ case R_RANGE:
++ unget_char(ch, file);
+ if (get_number(&num2, low, names, file) != EOF) {
+ state = R_RANGE_NUM2;
+ break;