Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Feb 1999 17:18:00 -0500 (EST)
From:      Mikhail Teterin <mi@misha.cisco.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/10152: fortune(6) gives bogus diagnostic sometimes
Message-ID:  <199902182218.RAA06950@misha.cisco.com>

next in thread | raw e-mail | index | archive | help

>Number:         10152
>Category:       bin
>Synopsis:       fortune(6) gives bogus diagnostic sometimes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 18 14:20:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.0-RELEASE i386
>Organization:
Virtual Estates, Inc.
>Environment:

	For whatever reason, some files in my /usr/share/games/fortune/
	were readable to root only...

>Description:

	  6816 fortune  CALL  stat(0x8052000,0xefbfd6f8)
	  6816 fortune  NAMI  "/usr/share/games/fortune/fortunes"
	  6816 fortune  RET   stat 0
	  6816 fortune  CALL  open(0x8052000,0,0)
	  6816 fortune  NAMI  "/usr/share/games/fortune/fortunes"
	  6816 fortune  RET   open 3
	  6816 fortune  CALL  access(0x8052040,0x4)
	  6816 fortune  NAMI  "/usr/share/games/fortune/fortunes.dat"
	  6816 fortune  RET   access -1 errno 13 Permission denied
	  6816 fortune  CALL  write(0x2,0xefbfd020,0x4a)
	  6816 fortune  GIO   fd 2 wrote 74 bytes
	       "fortune:/usr/share/games/fortune/fortunes not a fortune file or direct\
		ory"

see, it failed to open /usr/share/games/fortune/fortunes.dat, but reported a problem
with /usr/share/games/fortune/fortunes.

>How-To-Repeat:

	Make /usr/share/games/fortune/fortunes.dat 400. Try fortune -s

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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?199902182218.RAA06950>