Date: Thu, 18 Feb 1999 20:20:01 -0800 (PST) From: "Matthew D. Fuller" <fullermd@futuresouth.com> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/10152: fortune(6) gives bogus diagnostic sometimes Message-ID: <199902190420.UAA26325@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/10152; it has been noted by GNATS.
From: "Matthew D. Fuller" <fullermd@futuresouth.com>
To: mi@aldan.algebra.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/10152: fortune(6) gives bogus diagnostic sometimes
Date: Thu, 18 Feb 1999 22:10:08 -0600
On Thu, Feb 18, 1999 at 05:18:00PM -0500, a little birdie told me
that Mikhail Teterin remarked
>
> >Environment:
>
> For whatever reason, some files in my /usr/share/games/fortune/
> were readable to root only...
>
> "fortune:/usr/share/games/fortune/fortunes not a fortune file or direct\
> ory"
Interesting.
The relevant code it this:
if ((isdir && !add_dir(fp)) ||
(!isdir &&
!is_fortfile(path, &fp->datfile, &fp->posfile, (parent != NULL))))
{
if (parent == NULL)
fprintf(stderr,
"fortune:%s not a fortune file or directory\n",
path);
around line 540-ish in fortune.c.
I'll look into this a bit more, see if I can't make up something.
---
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
| Matthew Fuller http://www.over-yonder.net/~fullermd |
* fullermd@futuresouth.com fullermd@over-yonder.net *
| UNIX Systems Administrator Specializing in FreeBSD |
* FutureSouth Communications ISPHelp ISP Consulting *
| "The only reason I'm burning my candle at both ends, |
* is because I haven't figured out how to light the *
| middle yet" |
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902190420.UAA26325>
