From owner-freebsd-arch Wed Jan 16 23:59:44 2002 Delivered-To: freebsd-arch@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 129B237B400; Wed, 16 Jan 2002 23:59:31 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0H7wjs29428; Thu, 17 Jan 2002 09:58:45 +0200 (EET) (envelope-from ru) Date: Thu, 17 Jan 2002 09:58:45 +0200 From: Ruslan Ermilov To: Alfred Perlstein Cc: Garance A Drosihn , Robert Watson , Joerg Wunsch , arch@FreeBSD.org Subject: Re: cvs commit: src/gnu/usr.bin/man/man Makefile man.c src/etc/mtree BSD.local.dist BSD.usr.dist BSD.x11-4.dist BSD.x11.dist Message-ID: <20020117095845.A27310@sunbay.com> References: <20020116131608.J26067@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020116131608.J26067@elvis.mu.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jan 16, 2002 at 01:16:08PM -0800, Alfred Perlstein wrote: > * Garance A Drosihn [020116 13:12] wrote: > > (I am bcc:-ing this to cvs-committers and cvs-all, with the idea > > that this discussion is also going on in freebsd-arch and thus we > > could drop it from those two cvs lists...) > > > > At 3:00 PM -0500 1/16/02, Robert Watson wrote: > > >I'm happy with the behavior being available and turned off by default, > > >but personally my feeling is that the performance/correctness tradeoff > > >leans towards correctness given the risk. And to be honest, people > > >don't usually benchmark systems based on the time it takes to render > > >a man page. :-) > > > > But it is one of those things that will make the system "seem slower" > > to them, in day-to-day use. > > > > I think the security issue is a good enough reason to turn off the > > current behavior of 'man', but I do wish there was some middle-ground > > option which was between 'zero cat pages on disk' and 'automatically > > generate all cat pages for all existing man pages'. > > > > In my case, I have about a dozen man pages that I reference a lot, and > > a lot of man pages that I never reference. If something could keep > > track of which pages were actually referenced a lot, then some system > > daemon could generate cat-versions of just those man pages. > > > > I realize that's probably a large hammer to be invoking to solve such > > a little nail of a problem, but I couldn't help but wonder if there > > was some other way to handle this. > > If $HOME/.foo has proper permissions man should cache the pages > there. > It's easy: cd ~ mkdir .foo cd .foo ln -s /usr/share/man/man? . (cd /usr/share/man; echo cat?) | xargs mkdir man -M ~/.foo cat man(1) will create private catpages for you. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message