From e3c375eb4f33e265b0cb186435c0b540ed27d2da Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Mon, 13 May 2024 12:50:48 +0100 Subject: [PATCH] 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. --- libio/bug-wsetpos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libio/bug-wsetpos.c b/libio/bug-wsetpos.c index 0fc373ba490..8d47e9266fb 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; } -- 2.47.2