From: Frederic Berat Date: Tue, 20 Jun 2023 18:19:06 +0000 (+0200) Subject: rt/tst-mqueue4.c: Fix wrong number of argument for mq_open X-Git-Tag: glibc-2.38~115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=131af38694627f9e5aee13fdc301bf2010759a1b;p=thirdparty%2Fglibc.git rt/tst-mqueue4.c: Fix wrong number of argument for mq_open The mq_open routine should only get either 2 or 4 arguments, this test wrongly passed 3. Reviewed-by: Siddhesh Poyarekar --- diff --git a/rt/tst-mqueue4.c b/rt/tst-mqueue4.c index fe456287a3e..9fcaef107b7 100644 --- a/rt/tst-mqueue4.c +++ b/rt/tst-mqueue4.c @@ -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");