Date: Sat, 14 Jan 2006 21:26:55 -0200 From: Manuel Lemos <mlemos@acm.org> To: noackjr@alumni.rice.edu Cc: freebsd-cvsweb@freebsd.org Subject: Re: Hiding some directories Message-ID: <43C988BF.4000509@acm.org> In-Reply-To: <43C5DC1C.9040209@alumni.rice.edu> References: <OF96243472.5A043BB8-ON072570F3.0070D138-072570F3.0071175F@microchip.com> <43C5CEBC.6070908@acm.org> <43C5DC1C.9040209@alumni.rice.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43C988BF.4000509>