*BSD News Article 18526


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!emba-news.uvm.edu!trantor.emba.uvm.edu!wollman
From: wollman@trantor.emba.uvm.edu (Garrett Wollman)
Subject: Re: nn
Message-ID: <1993Jul16.220639.979@uvm.edu>
Sender: news@uvm.edu
Organization: University of Vermont, EMBA Computer Facility
References: <226q88INN56k@xs4all.hacktic.nl>
Date: Fri, 16 Jul 1993 22:06:39 GMT
Lines: 19

In article <226q88INN56k@xs4all.hacktic.nl> cor@hacktic.nl (Cor) writes:
>I tracked this to the gets() function in /usr/src/lib/libc/stdio/gets.c
>which prints this message to stderr. 
>This is kinda...no..really annoying. I guess what happens is..
>when nn tries to post the message using nntp, it checks stderr
>notices the message (coming from gets(), not inn or nn itself!!) 

gets() doesn't run in a vacuum---it msut be a part of some program!
The error message is a very strong hint to the installer that the
program emitting it is broken and needs to be fixed to use a safe
string-read routine, like fgetline() or fgets().

-GAWollman

-- 
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@emba.uvm.edu | Shashish is the bonding of hearts in spite of distance.
uvm-gen!wollman      | It is a bond more powerful than absence.  We like people
UVM disagrees.       | who like Shashish.  - Claude McKenzie + Florent Vollant