This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: libio backward compat bug? involving setmntent()
- To: Zack Weinberg <zack@rabi.columbia.edu>
- Subject: Re: libio backward compat bug? involving setmntent()
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 02 May 1999 21:10:59 -0700
- Cc: libc-hacker@cygnus.com
- References: <199905030147.VAA14514@blastula.phys.columbia.edu>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
Zack Weinberg <zack@rabi.columbia.edu> writes:
> I know the program is wrong. However, it appears to work, and
> recompiling it makes it appear to work again - so we get nailed for
> inadequate backward compat. If we really want to make people fix
> this, we should change fclose such that it always barfs when handed
> the FILE * that came from setmntent (or any other such function).
> Otherwise, we should make it work again.
I don't agree. There are potentially many situations where these
kinds of problems can appear. The interface is documented and
whenever somebody does not follow it s/he cannot demand compatibility.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------