about summary refs log tree commit diff
path: root/libio
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@redhat.com>2024-05-13 12:50:48 +0100
committerMaciej W. Rozycki <macro@redhat.com>2024-05-13 12:50:48 +0100
commite3c375eb4f33e265b0cb186435c0b540ed27d2da (patch)
tree0058cbaf47f7654752483eb3d2a1153b8870884a /libio
parentd49cd6a1913da9744b9a0ffbefb3f7958322382e (diff)
downloadglibc-e3c375eb4f33e265b0cb186435c0b540ed27d2da.tar.gz
glibc-e3c375eb4f33e265b0cb186435c0b540ed27d2da.tar.xz
glibc-e3c375eb4f33e265b0cb186435c0b540ed27d2da.zip
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.
Diffstat (limited to 'libio')
-rw-r--r--libio/bug-wsetpos.c2
1 files changed, 1 insertions, 1 deletions
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;
     }