From owner-freebsd-questions Wed Sep 25 15:58:04 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA21729 for questions-outgoing; Wed, 25 Sep 1996 15:58:04 -0700 (PDT) Received: from hod (hod.tera.com [206.215.142.67]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id PAA21682 for ; Wed, 25 Sep 1996 15:57:53 -0700 (PDT) Received: from athena.tera.com (athena.tera.com [206.215.142.62]) by hod (8.7.5/8.7.3) with ESMTP id PAA17473; Wed, 25 Sep 1996 15:57:50 -0700 (PDT) From: Gary Kline Received: (from kline@localhost) by athena.tera.com (8.7.5/8.7.3) id PAA18311; Wed, 25 Sep 1996 15:57:48 -0700 (PDT) Message-Id: <199609252257.PAA18311@athena.tera.com> Subject: Re: "Gets unsafe" message In-Reply-To: <3.0b24.32.19960925135728.006857c4@central.TanSoft.COM> from Rob Miracle at "Sep 25, 96 01:57:29 pm" To: rwm@MPGN.COM (Rob Miracle) Date: Wed, 25 Sep 1996 15:57:47 -0700 (PDT) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL23 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk According to Rob Miracle: > First, I know that gets is inherently unsafe so .... > > Is there away to prevent programs that call gets() to not print out the > message > about it being unsafe? > > I don't mind the compliler telling me, but for the library routine to is > not very nice. There is a lot of code that uses gets() and uses it in a > fashion that 99.99% of the time is ok. > Since you've got the code, why not axe the write() in gets.c and rebuild libc? gary kline