cronie: backport upstream regression fix.

62e53f1cdb

Closes #36554.
This commit is contained in:
Leah Neukirchen 2022-04-07 18:08:58 +02:00
parent 1f77f95881
commit ba6232a265
2 changed files with 22 additions and 1 deletions

View File

@ -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;

View File

@ -1,7 +1,7 @@
# Template file for 'cronie'
pkgname=cronie
version=1.6.0
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-inotify --without-selinux --with-pam
--enable-anacron --enable-pie --enable-relro"