Daemon News Ezine BSD News BSD Mall BSD Support Forum BSD Advocacy BSD Updates

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding some directories



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.