This is the mail archive of the libc-hacker@cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libio backward compat bug? involving setmntent()


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   `------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]