From: Maciej W. Rozycki Date: Mon, 13 May 2024 11:50:48 +0000 (+0100) Subject: libio/bug-wsetpos: Make the error message match the causing function X-Git-Tag: glibc-2.40~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3c375eb4f33e265b0cb186435c0b540ed27d2da;p=thirdparty%2Fglibc.git libio/bug-wsetpos: Make the error message match the causing function This test case calls `fopen': FILE *fp = fopen (temp_file, "r"); however if that fails it reports `fdopen' being the origin of the error. Adjust the message to say `fopen' then. --- diff --git a/libio/bug-wsetpos.c b/libio/bug-wsetpos.c index 0fc373ba49..8d47e9266f 100644 --- a/libio/bug-wsetpos.c +++ b/libio/bug-wsetpos.c @@ -37,7 +37,7 @@ do_test (void) if (fp == NULL) { - printf ("fdopen: %m\n"); + printf ("fopen: %m\n"); return 1; }