diff options
Diffstat (limited to 'recipes-devtools/rsync/rsync-2.6.9/0001-Make-it-build-with-compile-time-hardening-enabled.patch')
-rw-r--r-- | recipes-devtools/rsync/rsync-2.6.9/0001-Make-it-build-with-compile-time-hardening-enabled.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-devtools/rsync/rsync-2.6.9/0001-Make-it-build-with-compile-time-hardening-enabled.patch b/recipes-devtools/rsync/rsync-2.6.9/0001-Make-it-build-with-compile-time-hardening-enabled.patch new file mode 100644 index 0000000..e368024 --- /dev/null +++ b/recipes-devtools/rsync/rsync-2.6.9/0001-Make-it-build-with-compile-time-hardening-enabled.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From 8b032db07981a88141984201736c9c6d4fffeb9a Mon Sep 17 00:00:00 2001 | ||
2 | From: Peter Kjellerstedt <pkj@axis.com> | ||
3 | Date: Thu, 26 Apr 2018 02:29:22 +0200 | ||
4 | Subject: [PATCH] Make it build with compile time hardening enabled | ||
5 | |||
6 | This avoids the following error: | ||
7 | |||
8 | clientserver.c: In function 'rsync_module': | ||
9 | clientserver.c:681:4: error: format not a string literal and no | ||
10 | format arguments [-Werror=format-security] | ||
11 | rprintf(FERROR, err_msg); | ||
12 | ^~~~~~~ | ||
13 | |||
14 | Upstream-Status: Inappropriate [legacy version] | ||
15 | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> | ||
16 | --- | ||
17 | clientserver.c | 2 +- | ||
18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/clientserver.c b/clientserver.c | ||
21 | index 1cb6a09..0aafb8b 100644 | ||
22 | --- a/clientserver.c | ||
23 | +++ b/clientserver.c | ||
24 | @@ -678,7 +678,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host) | ||
25 | |||
26 | if (!ret || err_msg) { | ||
27 | if (err_msg) | ||
28 | - rprintf(FERROR, err_msg); | ||
29 | + rprintf(FERROR, "%s", err_msg); | ||
30 | else | ||
31 | option_error(); | ||
32 | msleep(400); | ||