This is the mail archive of the
mailing list for the glibc project.
Re: Sticky EOF breaks stream concatenation via dup2 [BZ #23636]
On Mon, Sep 17, 2018 at 04:38:24PM +0100, Adam Sampson wrote:
> Rich Felker <firstname.lastname@example.org> writes:
> >> Do you have any visibility into the ports tree to see how many
> >> other patches add clearerr(.*);?
> Looking at:
> The only other patch adding a call to clearerr is in colortail, and
> looking at the original code, that doesn't seem to be the same kind of
> problem since it's not replacing the fd:
> > Maybe getting a bit off-topic, but something is really wrong with FOSS
> > processes of getting fixes upstream if FreeBSD ports had this trivial
> > fix since 2015 and it didn't make it upstream.
> Well, maybe, but it's quite possible that the port author didn't realise
> it was a general bugfix (rather than a FreeBSD-specific thing); I've
> certainly made the same mistake when writing ports in the past!
Yes, it's not my intent to assign blame here; rather, I think there's
a lack of publicized education and communication on distinguishing the
two and on getting things like this seen by the eyes who are already
able to distinguish. I'm not sure how we best address that.