Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 May 1995 19:37:04 -0700 (PDT)
From:      "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
To:        henrich@fubar.cl.msu.edu
Cc:        freebsd-bugs@freefall.cdrom.com
Subject:   Re: gnu/397: man spews worthless information
Message-ID:  <199505120237.TAA13900@gndrsh.aac.dev.com>
In-Reply-To: <199505120220.TAA24443@freefall.cdrom.com> from "Charles Henrich" at May 11, 95 07:20:04 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199505120237.TAA13900>