From owner-freebsd-bugs Thu May 11 19:20:05 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA24450 for bugs-outgoing; Thu, 11 May 1995 19:20:05 -0700 Received: (from gnats@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA24443 ; Thu, 11 May 1995 19:20:04 -0700 Date: Thu, 11 May 1995 19:20:04 -0700 Message-Id: <199505120220.TAA24443@freefall.cdrom.com> From: Charles Henrich Reply-To: Charles Henrich To: freebsd-bugs Subject: gnu/397: man spews worthless information In-Reply-To: Your message of Thu, 11 May 1995 22:18:26 -0400 <199505120218.WAA08811@fubar.cl.msu.edu> Sender: bugs-owner@FreeBSD.org Precedence: bulk >Number: 397 >Category: gnu >Synopsis: man spews worthless information >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs (FreeBSD bugs mailing list) >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu May 11 19:20:02 1995 >Originator: Charles Henrich >Organization: Michigan State University >Release: FreeBSD 2.1.0-Development i386 >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); >Audit-Trail: >Unformatted: