about summary refs log tree commit diff
path: root/libio/tst-mmap-setvbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/tst-mmap-setvbuf.c')
-rw-r--r--libio/tst-mmap-setvbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/tst-mmap-setvbuf.c b/libio/tst-mmap-setvbuf.c
index 47854b714e..3512357c60 100644
--- a/libio/tst-mmap-setvbuf.c
+++ b/libio/tst-mmap-setvbuf.c
@@ -48,7 +48,7 @@ int main (void)
   fputs (test, f);
   fclose (f);
 
-  f = fopen (name, "r");
+  f = fopen (name, "rm");
   if (f == NULL)
     {
       printf ("%u: cannot fopen temporary file: %m\n", __LINE__);