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
/
ceph.c
diff --git
a/src/ceph.c
b/src/ceph.c
index
e9bb960
..
8cda764
100644
(file)
--- a/
src/ceph.c
+++ b/
src/ceph.c
@@
-1577,7
+1577,7
@@
static int ceph_init(void)
{
int ret;
-#if
def HAVE_SYS_CAPABILITY_H
+#if
defined(HAVE_SYS_CAPABILITY_H) && defined(CAP_DAC_OVERRIDE)
if (check_capability (CAP_DAC_OVERRIDE) != 0)
{
if (getuid () == 0)