[PATCH] Fix nscd HAVE_LIBCAP
Jakub Jelinek
jakub@redhat.com
Fri Mar 23 16:10:00 GMT 2007
On Thu, Mar 22, 2007 at 05:42:25PM +0100, Jakub Jelinek wrote:
> 2007-03-22 Jakub Jelinek <jakub@redhat.com>
>
> * config.h.in (HAVE_LIBCAP): Add.
> * nscd/selinux.h: Include sys/capability.h rather than non-existent
> sys/capabilities.h.
> * nscd/selinux.c (preserve_capabilities): Use cap_free instead of
> free_caps. Cast away const from 4th cap_set_flag argument.
When this is applied, check-local-headers complains about sys/capability.h,
which isn't a glibc header.
Fixed thusly:
2007-03-23 Jakub Jelinek <jakub@redhat.com>
* scripts/check-local-headers.sh: Filter out sys/capability.h.
--- libc/scripts/check-local-headers.sh.jj 2007-01-15 23:25:30.000000000 +0100
+++ libc/scripts/check-local-headers.sh 2007-03-23 17:05:08.000000000 +0100
@@ -30,6 +30,7 @@ if fgrep "$includedir" */*.{o,os,oS}.d |
fgrep -v "$includedir/asm" |
fgrep -v "$includedir/linux" |
fgrep -v "$includedir/selinux" |
+fgrep -v "$includedir/sys/capability.h" |
fgrep -v "$includedir/gd"; then
# If we found a match something is wrong.
exit 1
Jakub
More information about the Libc-hacker
mailing list