From owner-cvs-src@FreeBSD.ORG Wed May 16 09:31:09 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8EAAF16A402; Wed, 16 May 2007 09:31:09 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 41FF013C484; Wed, 16 May 2007 09:31:09 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5FC6A.dip.t-dialin.net [84.165.252.106]) by redbull.bpaserver.net (Postfix) with ESMTP id 3341C2E24D; Wed, 16 May 2007 11:31:05 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 6D0F55B48A3; Wed, 16 May 2007 11:30:49 +0200 (CEST) Received: (from www@localhost) by webmail.leidinger.net (8.13.8/8.13.8/Submit) id l4G9Unve023530; Wed, 16 May 2007 11:30:49 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 16 May 2007 11:30:49 +0200 Message-ID: <20070516113049.gx56iwpisc8ks08g@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 16 May 2007 11:30:49 +0200 From: Alexander Leidinger To: Dag-Erling =?utf-8?b?U23Dg8K4cmdyYXY=?= References: <200705131815.l4DIFop9026874@repoman.freebsd.org> <20070514154040.0lofzrgm8kskgog4@webmail.leidinger.net> <86wszbqxbz.fsf@dwp.des.no> <20070514172938.5v4yi78kisokk84s@webmail.leidinger.net> <861whiy5ra.fsf@dwp.des.no> <20070516094330.dkp2e41vdc0w8kg8@webmail.leidinger.net> <86mz052nbz.fsf@dwp.des.no> In-Reply-To: <86mz052nbz.fsf@dwp.des.no> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) / FreeBSD-7.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.564, required 8, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14, MIME_8BIT_HEADER 0.30) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile.inc1 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2007 09:31:09 -0000 Quoting Dag-Erling Sm=C3=83=C2=B8rgrav (from Wed, 16 May 2007 = =20 10:18:40 +0200): > Alexander Leidinger writes: >> What about another idea: removing the chflags all together and let the >> removal fail (with a message that the file may be protected with schg >> and it should be removed with chglags). This way only a message >> appears when the rm fails (saying no to the removal question of rm is >> not a failure/exit!=3D0). > > OK with me. > > BTW, testing for the schg flag is not straightforward, but doable: > > flags=3D$(stat -f '%f' ./$${file}) > if [ $((flags & 131072)) -eq 131072 ] ; then > # schg is set > fi This does not cover the case when the user doesn't want to remove the =20 file. So I think removing the chflags is better than testing for the =20 flag. Bye, Alexander. --=20 Anyone can hold the helm when the sea is calm. =09=09-- Publilius Syrus http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137