Blame SOURCES/0003-xshared-Fix-build-for-Werror-format-security.patch
|
|
a1bd1a |
From 4350a1e4daabc4ec1f9b692425d9bd0d48d27488 Mon Sep 17 00:00:00 2001
|
|
|
a1bd1a |
From: Phil Sutter <phil@nwl.cc>
|
|
|
a1bd1a |
Date: Fri, 13 May 2022 16:51:58 +0200
|
|
|
a1bd1a |
Subject: [PATCH] xshared: Fix build for -Werror=format-security
|
|
|
a1bd1a |
|
|
|
a1bd1a |
Gcc complains about the omitted format string.
|
|
|
a1bd1a |
|
|
|
a1bd1a |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
a1bd1a |
(cherry picked from commit b72eb12ea5a61df0655ad99d5048994e916be83a)
|
|
|
a1bd1a |
---
|
|
|
a1bd1a |
iptables/xshared.c | 2 +-
|
|
|
a1bd1a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a1bd1a |
|
|
|
a1bd1a |
diff --git a/iptables/xshared.c b/iptables/xshared.c
|
|
|
a1bd1a |
index fae5ddd5df93e..a8512d3808154 100644
|
|
|
a1bd1a |
--- a/iptables/xshared.c
|
|
|
a1bd1a |
+++ b/iptables/xshared.c
|
|
|
a1bd1a |
@@ -1307,7 +1307,7 @@ static void check_empty_interface(struct xtables_args *args, const char *arg)
|
|
|
a1bd1a |
return;
|
|
|
a1bd1a |
|
|
|
a1bd1a |
if (args->family != NFPROTO_ARP)
|
|
|
a1bd1a |
- xtables_error(PARAMETER_PROBLEM, msg);
|
|
|
a1bd1a |
+ xtables_error(PARAMETER_PROBLEM, "%s", msg);
|
|
|
a1bd1a |
|
|
|
a1bd1a |
fprintf(stderr, "%s", msg);
|
|
|
a1bd1a |
}
|
|
|
a1bd1a |
--
|
|
|
a1bd1a |
2.34.1
|
|
|
a1bd1a |
|