File klibc-2.0.4-kinit-capabilities.patch of Package klibc

diff -Ndurp klibc-2.0.4/usr/kinit/capabilities.c klibc-2.0.4-kinit-capabilities/usr/kinit/capabilities.c
--- klibc-2.0.4/usr/kinit/capabilities.c	2014-07-09 18:21:02.000000000 +0300
+++ klibc-2.0.4-kinit-capabilities/usr/kinit/capabilities.c	2014-10-09 19:15:15.181556331 +0300
@@ -61,7 +61,9 @@ struct capability {
 	MAKE_CAP(CAP_SETFCAP),
 	MAKE_CAP(CAP_MAC_OVERRIDE),
 	MAKE_CAP(CAP_MAC_ADMIN),
+#ifdef CAP_SYSLOG
 	MAKE_CAP(CAP_SYSLOG),
+#endif
 };
 
 static void fail(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
openSUSE Build Service is sponsored by