From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9711 invoked by alias); 23 Mar 2007 16:10:22 -0000 Received: (qmail 9693 invoked by uid 22791); 23 Mar 2007 16:10:21 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 Mar 2007 16:10:11 +0000 Received: from sunsite.mff.cuni.cz (localhost.localdomain [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.8/8.13.8) with ESMTP id l2NGEZfZ026332; Fri, 23 Mar 2007 17:14:35 +0100 Received: (from jakub@localhost) by sunsite.mff.cuni.cz (8.13.8/8.13.8/Submit) id l2NGEZDk026329; Fri, 23 Mar 2007 17:14:35 +0100 Date: Fri, 23 Mar 2007 16:10:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: Re: [PATCH] Fix nscd HAVE_LIBCAP Message-ID: <20070323161435.GB1826@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek References: <20070322164224.GA1826@sunsite.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070322164224.GA1826@sunsite.mff.cuni.cz> User-Agent: Mutt/1.4.2.2i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-03/txt/msg00036.txt.bz2 On Thu, Mar 22, 2007 at 05:42:25PM +0100, Jakub Jelinek wrote: > 2007-03-22 Jakub Jelinek > > * 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 * 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