]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
libio/bug-wsetpos: Make the error message match the causing function
authorMaciej W. Rozycki <macro@redhat.com>
Mon, 13 May 2024 11:50:48 +0000 (12:50 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Mon, 13 May 2024 11:50:48 +0000 (12:50 +0100)
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

index 0fc373ba490c4d408273a5ad5dcb37341a65cab5..8d47e9266fb681785d0d9398a91aa5969c0142ab 100644 (file)
@@ -37,7 +37,7 @@ do_test (void)
 
   if (fp == NULL)
     {
-      printf ("fdopen: %m\n");
+      printf ("fopen: %m\n");
       return 1;
     }