SHA256
1
0
forked from pool/hxtools
hxtools/7a4b085-capabilities.diff
Stephan Kulow f11c537237 Accepting request 108853 from devel:libraries:c_c++
license update: GPL-2.0+
spec file license should be in SPDX (compatible) format. GPL-2.0+ seems to be the most appropriate license choice for the resulting binary (no GPL-3.0 except for as choice in dual license situation) (forwarded request 108852 from babelworx)

OBS-URL: https://build.opensuse.org/request/show/108853
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hxtools?expand=0&rev=12
2012-03-20 10:27:37 +00:00

33 lines
787 B
Diff

parent e688e5c6d8a9b0032db2218ab71766f11c19d2ca (rel-20120107-4-ge688e5c)
commit 7a4b085d13182f690b1bbdc971401251b6be09a2
Author: Jan Engelhardt <jengelh@medozas.de>
Date: Sat Feb 11 02:13:39 2012 +0100
printcaps: guard against non-existing capability defines
---
sadmin/printcaps.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/sadmin/printcaps.c b/sadmin/printcaps.c
index bb957e3..bd14d6c 100644
--- a/sadmin/printcaps.c
+++ b/sadmin/printcaps.c
@@ -47,9 +47,15 @@ static const char *const cap_names[] = {
E(LEASE),
E(AUDIT_WRITE),
E(AUDIT_CONTROL),
+#ifdef CAP_SETFCAP
E(SETFCAP),
+#endif
+#ifdef CAP_MAC_OVERRIDE
E(MAC_OVERRIDE),
+#endif
+#ifdef CAP_MAC_ADMIN
E(MAC_ADMIN),
+#endif
#undef E
};
--
# Created with git-export-patch