aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-printf-format-as-ldouble.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2025-04-08 18:38:38 +0200
committerFlorian Weimer <fweimer@redhat.com>2025-04-14 09:59:12 +0200
commit7b47b3dd214c8ff2c699f13efe5533941be53635 (patch)
tree595e4959df5fe39c6ab46681a40b6843c652ed63 /stdio-common/tst-printf-format-as-ldouble.c
parentde14f1959ee5f9b845a7cae43bee03068b8136f0 (diff)
downloadglibc-7b47b3dd214c8ff2c699f13efe5533941be53635.zip
glibc-7b47b3dd214c8ff2c699f13efe5533941be53635.tar.gz
glibc-7b47b3dd214c8ff2c699f13efe5533941be53635.tar.bz2
libio: Synthesize ESPIPE error if lseek returns 0 after reading bytes
This is required so that fclose, when trying to seek to the right position after filling the input buffer, does not fail with EINVAL. This fclose code path only ignores ESPIPE errors. Reported by Petr Pisar on <https://bugzilla.redhat.com/show_bug.cgi?id=2358265>. Fixes commit be6818be31e756398e45f70e2819d78be0961223 ("Make fclose seek input file to right offset (bug 12724)"). Reviewed-by: Frédéric Bérat <fberat@redhat.com>
Diffstat (limited to 'stdio-common/tst-printf-format-as-ldouble.c')
0 files changed, 0 insertions, 0 deletions