From owner-freebsd-cvsweb@FreeBSD.ORG Sat Jan 14 23:52:41 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 E0B4C16A41F for ; Sat, 14 Jan 2006 23:52:41 +0000 (GMT) (envelope-from mlemos@acm.org) Received: from phpclasses.org (phpclasses.org [69.55.226.116]) by mx1.FreeBSD.org (Postfix) with SMTP id 8440643D46 for ; Sat, 14 Jan 2006 23:52:41 +0000 (GMT) (envelope-from mlemos@acm.org) Received: (qmail 31773 invoked from network); 14 Jan 2006 23:55:39 -0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 14 Jan 2006 23:55:39 -0000 Message-ID: <43C988BF.4000509@acm.org> Date: Sat, 14 Jan 2006 21:26:55 -0200 From: Manuel Lemos User-Agent: Thunderbird 1.5 (X11/20060111) MIME-Version: 1.0 To: noackjr@alumni.rice.edu References: <43C5CEBC.6070908@acm.org> <43C5DC1C.9040209@alumni.rice.edu> In-Reply-To: <43C5DC1C.9040209@alumni.rice.edu> Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 14 Jan 2006 23:52:42 -0000 Hello, on 01/12/2006 02:33 AM Jonathan Noack said the following: >> >> Is there a way to hide some directories besides CVSROOT? >> > >> > See the @ForbiddenFiles array in cvsweb.conf. >> >> Thanks, that is what I am looking for. >> >> 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. Great it works as intended. I had to use an entry like qr|^x(/\|$)|o so directory x and its contents are accepted but not xy directory . It is a bit cryptic but it works. Thank you again. -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/