getdelim: ensure error indicator is set on error (bug 29917)
authorAndreas Schwab <schwab@suse.de>
Mon, 19 Dec 2022 11:40:45 +0000 (12:40 +0100)
committerAndreas Schwab <schwab@suse.de>
Mon, 2 Jan 2023 09:58:49 +0000 (10:58 +0100)
commita09183aed7bb8ace211e042b2e6e982bcc004957
tree7b82a3d4952b5623087f7368fddeea81570f4f23
parent289b098c9e21e2805e3835f9b5780235ab14a290
getdelim: ensure error indicator is set on error (bug 29917)

POSIX requires that getdelim and getline set the error indicator on the
stream when an error occured, in addition to setting errno.
libio/Makefile
libio/iogetdelim.c
libio/tst-getdelim.c [new file with mode: 0644]