is this a bug in glibc or readpst?
Florian Weimer
fweimer@redhat.com
Mon Aug 7 11:46:03 GMT 2023
* Paul Wise:
> On Mon, 2023-08-07 at 10:59 +0200, Florian Weimer wrote:
>
>> We could perhaps avoid the seek for read-only streams. We are about to
>> close the stream anyway, so fflush does not have any useful effect
>> anyway. Not sure what others think if it is worth the complexity. On
>> the other hand, preserving backwards compatibility here does not appear
>> to be too onerous.
>
> It might be worth checking what other implementations do, perhaps
> if they all avoid the seek in this case then maybe glibc should too?
I expect this is difficult to figure out for certain because of the
internal stream state may not be very clear unless you are familiar with
the code. 8-(
So I'd prefer to fix the glibc regression instead.
Thanks,
Florian
More information about the Libc-help
mailing list