[email protected]
[Top] [All Lists]

Re: Problem while viewing rotated log files

Subject: Re: Problem while viewing rotated log files
From: Pavel Tsekov
Date: Fri, 1 Jul 2005 11:42:08 +0300

On Fri, 1 Jul 2005, Roland Illig wrote:

> >>The problem with all this is that the file command does not reliably
> >>test the file type inside b/gzipped files so we have to do some
> >>trickery.
> >>
> >>Does the attached patch fix the issue (adds a test for the location
> >>/var/log)?
> >
> >
> > Isn't it better to use the `mandir' variable to determine the possible
> > location of manpages instead of hardcoding `/var/log' ? configure would
> > then replace `mandir' with the correct value and MC will assume that
> > files under that directory are manpages ? Or use `localstatedir' to
> > determine the location of the /var folder ?
> I don't think so. `mandir' is the directory where mc's man pages are

This is certainly true.

> installed. You cannot assume anything else about it. Especially you
> cannot assume any other program has its man pages there. Same goes for
> the other directories.

I can assume that on a decent distro the manpages go in the same location
more or less. I.e. the package maintainers build the packages with common
set of directories. So this idea is not as bad as you seem to imply. And
it was merely a suggestion after all.

Mc mailing list

<Prev in Thread] Current Thread [Next in Thread>