From 2ad5471bd33396c5a5675c740b98d79c006f4916 Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Mon, 26 Mar 2012 17:43:41 +0200 Subject: [PATCH] policycoreutils: fix ftbfs with hardening flags We are now building our packages with -Werror=format-security enabled. The attached patch fix the FTBFS. More patch related to this could follow. Signed-off-by: Laurent Bigonville Signed-off-by: Eric Paris Acked-by: Dan Walsh --- policycoreutils/sandbox/seunshare.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policycoreutils/sandbox/seunshare.c b/policycoreutils/sandbox/seunshare.c index e15b2a5b..3bb3c4b7 100644 --- a/policycoreutils/sandbox/seunshare.c +++ b/policycoreutils/sandbox/seunshare.c @@ -295,8 +295,8 @@ static int seunshare_mount(const char *src, const char *dst, struct stat *src_st */ static int sandbox_error(const char *string) { - fprintf(stderr, string); - syslog(LOG_AUTHPRIV | LOG_ALERT, string); + fprintf(stderr, "%s", string); + syslog(LOG_AUTHPRIV | LOG_ALERT, "%s", string); exit(-1); }