File util-linux-lscpu-format-security.patch of Package util-linux.4136

From f93993b746236f7bf792924c175f8894a447c6aa Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Fri, 6 Feb 2015 10:31:03 +0100
Subject: [PATCH] lscpu: fix compiler error [-Werror=format-security]

Signed-off-by: Karel Zak <kzak@redhat.com>
---
 sys-utils/lscpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-utils/lscpu.c b/sys-utils/lscpu.c
index 7f2568d..2a616e2 100644
--- a/sys-utils/lscpu.c
+++ b/sys-utils/lscpu.c
@@ -598,7 +598,7 @@ static int is_compatible(const char *path, const char *str)
 {
 	FILE *fd;
 
-	fd = path_fopen("r", 0, path);
+	fd = path_fopen("r", 0, "%s", path);
 	if (fd) {
 		char buf[256];
 		size_t i, len;
-- 
2.8.1

openSUSE Build Service is sponsored by