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:
parent
2b5a0530e7
commit
2ad5471bd3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue