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@rabi.columbia.edu (Zack Weinberg)
- Subject: Re: libio backward compat bug? involving setmntent()
- From: hjl@lucon.org (H.J. Lu)
- Date: Tue, 13 Apr 1999 07:48:56 -0700 (PDT)
- Cc: libc-hacker@cygnus.com
>
>
> The appended slightly-out-of-spec code segfaults when compiled on a
> libc 2.0 system and run on a libc 2.1 system. The problem is that
> setmntent() returns a new FILE*, but fclose is bound to the old
> fclose.
>
> Do we want to support this, and if so, how? (Have old fclose
> recognize when it's handed a new FILE* and call _IO_new_fclose?)
>
Thanks for the bug report. I will fix it.
H.J.