[systemd-devel] [PATCH 3/9] capabilities: remove spurious include of <sys/capability.h> from tmpfiles.c

Filipe Brandenburger filbranden at google.com
Tue Dec 23 10:38:44 PST 2014


It does not use any functions from libcap directly. The CAP_MKNOD constant in
use by this file comes from <linux/capability.h> imported through "missing.h".

Tested that "systemd-tmpfiles" builds cleanly and works after this change.
---
 src/tmpfiles/tmpfiles.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index d40bd96..44ea51e 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -38,7 +38,6 @@
 #include <sys/param.h>
 #include <glob.h>
 #include <fnmatch.h>
-#include <sys/capability.h>
 #include <sys/xattr.h>
 
 #include "log.h"
-- 
1.8.3.1



More information about the systemd-devel mailing list