From owner-freebsd-bugs Thu May 11 19:37:31 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id TAA25307 for bugs-outgoing; Thu, 11 May 1995 19:37:31 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id TAA25293 for ; Thu, 11 May 1995 19:37:27 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id TAA13900; Thu, 11 May 1995 19:37:05 -0700 From: "Rodney W. Grimes" Message-Id: <199505120237.TAA13900@gndrsh.aac.dev.com> Subject: Re: gnu/397: man spews worthless information To: henrich@fubar.cl.msu.edu Date: Thu, 11 May 1995 19:37:04 -0700 (PDT) Cc: freebsd-bugs@freefall.cdrom.com In-Reply-To: <199505120220.TAA24443@freefall.cdrom.com> from "Charles Henrich" at May 11, 95 07:20:04 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1095 Sender: bugs-owner@FreeBSD.org Precedence: bulk How about a better patch... > > >Number: 397 > >Category: gnu > >Synopsis: man spews worthless information ... > /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) if (status < 0 && debug) > ! { > ! fprintf (stderr, "Warning: couldn't stat file %s!\n", p); > ! } > ! else if (status == 0) else if (status == 0 && debug) > ! { > ! 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); Or inclose the block in if (debug) -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Custom computers for FreeBSD