From owner-freebsd-cvsweb@FreeBSD.ORG Thu Jan 12 21:26:31 2006 Return-Path: X-Original-To: freebsd-cvsweb@freebsd.org Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A180416A41F for ; Thu, 12 Jan 2006 21:26:31 +0000 (GMT) (envelope-from scop@freebsd.org) Received: from smtp2.pp.htv.fi (smtp2.pp.htv.fi [213.243.153.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 344EE43D72 for ; Thu, 12 Jan 2006 21:26:31 +0000 (GMT) (envelope-from scop@freebsd.org) Received: from [192.168.2.4] (cs181056070.pp.htv.fi [82.181.56.70]) by smtp2.pp.htv.fi (Postfix) with ESMTP id 33CF3296C36; Thu, 12 Jan 2006 23:26:29 +0200 (EET) From: Ville =?ISO-8859-1?Q?Skytt=E4?= To: noackjr@alumni.rice.edu In-Reply-To: <43C5DC1C.9040209@alumni.rice.edu> References: <43C5CEBC.6070908@acm.org> <43C5DC1C.9040209@alumni.rice.edu> Content-Type: text/plain Organization: FreeBSD Date: Thu, 12 Jan 2006 23:26:29 +0200 Message-Id: <1137101189.19680.54.camel@bobcat.mine.nu> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Content-Transfer-Encoding: 7bit Cc: freebsd-cvsweb@freebsd.org Subject: Re: Hiding some directories X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2006 21:26:31 -0000 On Wed, 2006-01-11 at 23:33 -0500, Jonathan Noack wrote: > > BTW, I am not familiar enough with Perl. Although I was able to > > configure that array to forbid all directories that I did not want, I > > wonder if is there a way to specify in that array just a few top level > > directories that I want. > > How about an @AllowedFiles list that only displays files and directories > that match? See attached patches for cvsweb.cgi and cvsweb.conf. No strong opinions nor objections if this is really needed, but couldn't some extended patterns be used for that, and some commented out examples of those be added to cvsweb.conf? Maybe negative look-behind (see "man perlre")? It could get somewhat hairy though.