From henrich@fubar.cl.msu.edu  Thu May 11 19:17:22 1995
Received: from fubar.cl.msu.edu (fubar.cl.msu.edu [35.8.1.18])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA24307
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 11 May 1995 19:17:20 -0700
Received: (from henrich@localhost) by fubar.cl.msu.edu (8.6.11/8.6.9) id WAA08811; Thu, 11 May 1995 22:18:26 -0400
Message-Id: <199505120218.WAA08811@fubar.cl.msu.edu>
Date: Thu, 11 May 1995 22:18:26 -0400
From: Charles Henrich <henrich@fubar.cl.msu.edu>
Reply-To: henrich@crh.cl.msu.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: man spews worthless information
X-Send-Pr-Version: 3.2

>Number:         397
>Category:       gnu
>Synopsis:       man spews worthless information
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 11 19:20:02 1995
>Closed-Date:    Thu May 11 21:56:42 PDT 1995
>Last-Modified:
>Originator:     Charles Henrich
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
Michigan State University
>Environment:

        FreeBSD 950412-SNAP

>Description:

        Man as shipped with FreeBSD spews a message for each directory that
        is in the manpath but not on disk (i.e.:

	Warning: couldn't stat file /usr/man!
	Warning: couldn't stat file /usr/share/catman!
	Warning: couldn't stat file /usr/catman!
	Warning: couldn't stat file /usr/local/X11R6/man!
	Warning: couldn't stat file /usr/X11R5/man!
	Warning: couldn't stat file /usr/local/X11R5/man!
	Warning: couldn't stat file /usr/local/AF/man!

        A) no other man on the planet gives these warnings.
        B) Because no other man on the planet gives these warnings lots of
           folks just create a huge manpath that will work on all systems they
           have a shared home directory on.
        C) Because shared home directories are prevelent at Universities and 
           other large organizations these worthless messages should be 
           stomped.
	

>How-To-Repeat:

        Run man with an "invalid" manpath.
	

>Fix:
	
	

/usr/src/gnu/usr.bin/man/man/man.c

*** man.c	Tue Apr 11 18:01:53 1995
--- man.new.c	Thu May 11 22:10:47 1995
***************
*** 269,283 ****
  
    status = is_directory (p);
  
!   if (status < 0)
!     {
!       fprintf (stderr, "Warning: couldn't stat file %s!\n", p);
!     }
!   else if (status == 0)
!     {
!       fprintf (stderr, "Warning: %s isn't a directory!\n", p);
!     }
!   else if (status == 1)
      {
        if (debug)
  	fprintf (stderr, "adding %s to manpathlist\n", p);
--- 269,275 ----
  
    status = is_directory (p);
  
!   if (status == 1)
      {
        if (debug)
  	fprintf (stderr, "adding %s to manpathlist\n", p);

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rgrimes 
State-Changed-When: Thu May 11 21:56:42 PDT 1995 
State-Changed-Why:  
/home/ncvs/src/gnu/usr.bin/man/man/man.c,v  <--  man.c 
new revision: 1.12; previous revision: 1.11 
>Unformatted:


/home/ncvs/src/gnu/usr.bin/man/man/man.c,v  <--  man.c
new revision: 1.12; previous revision: 1.11

