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 <bigon@debian.org>
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
Laurent Bigonville 2012-03-26 17:43:41 +02:00 committed by Eric Paris
parent 2b5a0530e7
commit 2ad5471bd3
1 changed files with 2 additions and 2 deletions

View File

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