projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check_capability: explicitly target recent linux implementations
[collectd.git]
/
src
/
iptables.c
diff --git
a/src/iptables.c
b/src/iptables.c
index
66dbab7
..
c0854b3
100644
(file)
--- a/
src/iptables.c
+++ b/
src/iptables.c
@@
-505,7
+505,7
@@
static int iptables_shutdown (void)
static int iptables_init (void)
{
-#if
def HAVE_SYS_CAPABILITY_H
+#if
defined(HAVE_SYS_CAPABILITY_H) && defined(CAP_NET_ADMIN)
if (check_capability (CAP_NET_ADMIN) != 0)
{
if (getuid () == 0)