diff options
| -rw-r--r-- | meta/recipes-extended/cronie/cronie/make_error_func_prototype_complete.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-extended/cronie/cronie_1.7.2.bb | 1 |
2 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-extended/cronie/cronie/make_error_func_prototype_complete.patch b/meta/recipes-extended/cronie/cronie/make_error_func_prototype_complete.patch new file mode 100644 index 0000000000..71f0153ec6 --- /dev/null +++ b/meta/recipes-extended/cronie/cronie/make_error_func_prototype_complete.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From 09c630c654b2aeff06a90a412cce0a60ab4955a4 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Tomas Mraz <tmraz@fedoraproject.org> | ||
| 3 | Date: Mon, 18 Nov 2024 21:02:30 +0100 | ||
| 4 | Subject: [PATCH] load_entry(): Make error_func prototype complete | ||
| 5 | |||
| 6 | Fixes #193 | ||
| 7 | |||
| 8 | Upstream-Status: Backport [https://github.com/cronie-crond/cronie/commit/09c630c654b2aeff06a90a412cce0a60ab4955a4] | ||
| 9 | |||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | src/entry.c | 2 +- | ||
| 13 | src/funcs.h | 2 +- | ||
| 14 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
| 15 | |||
| 16 | diff --git a/src/entry.c b/src/entry.c | ||
| 17 | index 586eb9d..a2077e8 100644 | ||
| 18 | --- a/src/entry.c | ||
| 19 | +++ b/src/entry.c | ||
| 20 | @@ -90,7 +90,7 @@ void free_entry(entry * e) { | ||
| 21 | /* return NULL if eof or syntax error occurs; | ||
| 22 | * otherwise return a pointer to a new entry. | ||
| 23 | */ | ||
| 24 | -entry *load_entry(FILE * file, void (*error_func) (), struct passwd *pw, | ||
| 25 | +entry *load_entry(FILE * file, void (*error_func) (const char *), struct passwd *pw, | ||
| 26 | char **envp) { | ||
| 27 | /* this function reads one crontab entry -- the next -- from a file. | ||
| 28 | * it skips any leading blank lines, ignores comments, and returns | ||
| 29 | diff --git a/src/funcs.h b/src/funcs.h | ||
| 30 | index 427e027..f28d634 100644 | ||
| 31 | --- a/src/funcs.h | ||
| 32 | +++ b/src/funcs.h | ||
| 33 | @@ -89,7 +89,7 @@ char *env_get(const char *, char **), | ||
| 34 | user *load_user(int, struct passwd *, const char *, const char *, const char *), | ||
| 35 | *find_user(cron_db *, const char *, const char *); | ||
| 36 | |||
| 37 | -entry *load_entry(FILE *, void (*)(), struct passwd *, char **); | ||
| 38 | +entry *load_entry(FILE *, void (*)(const char *), struct passwd *, char **); | ||
| 39 | |||
| 40 | FILE *cron_popen(char *, const char *, struct passwd *, char **); | ||
| 41 | |||
diff --git a/meta/recipes-extended/cronie/cronie_1.7.2.bb b/meta/recipes-extended/cronie/cronie_1.7.2.bb index 496ca39fd7..b250717ab8 100644 --- a/meta/recipes-extended/cronie/cronie_1.7.2.bb +++ b/meta/recipes-extended/cronie/cronie_1.7.2.bb | |||
| @@ -17,6 +17,7 @@ SECTION = "utils" | |||
| 17 | GITHUB_BASE_URI = "https://github.com/cronie-crond/${BPN}/releases/" | 17 | GITHUB_BASE_URI = "https://github.com/cronie-crond/${BPN}/releases/" |
| 18 | 18 | ||
| 19 | SRC_URI = "${GITHUB_BASE_URI}/download/cronie-${PV}/cronie-${PV}.tar.gz \ | 19 | SRC_URI = "${GITHUB_BASE_URI}/download/cronie-${PV}/cronie-${PV}.tar.gz \ |
| 20 | file://make_error_func_prototype_complete.patch \ | ||
| 20 | file://crond.init \ | 21 | file://crond.init \ |
| 21 | file://crontab \ | 22 | file://crontab \ |
| 22 | file://crond.service \ | 23 | file://crond.service \ |
