]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
rt/tst-mqueue4.c: Fix wrong number of argument for mq_open
authorFrederic Berat <fberat@redhat.com>
Tue, 20 Jun 2023 18:19:06 +0000 (20:19 +0200)
committerSiddhesh Poyarekar <siddhesh@sourceware.org>
Thu, 22 Jun 2023 04:21:13 +0000 (00:21 -0400)
The mq_open routine should only get either 2 or 4 arguments, this test
wrongly passed 3.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
rt/tst-mqueue4.c

index fe456287a3e9ad20bc88de31963eba0a20813683..9fcaef107b7422a15dbaf8a4741ce943f75f0e87 100644 (file)
@@ -175,14 +175,14 @@ do_test (void)
       result = 1;
     }
 
-  q2 = mq_open (name, O_RDONLY, 0600);
+  q2 = mq_open (name, O_RDONLY);
   if (q2 == (mqd_t) -1)
     {
       printf ("mq_open without O_CREAT failed with %m\n");
       result = 1;
     }
 
-  mqd_t q3 = mq_open (name, O_RDONLY, 0600);
+  mqd_t q3 = mq_open (name, O_RDONLY);
   if (q3 == (mqd_t) -1)
     {
       printf ("mq_open without O_CREAT failed with %m\n");