From 0a901ba456d0a0e6dfd0488b3f20f03d9e103d6f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 19 Apr 2004 17:28:57 +0000 Subject: Update. 2004-04-19 Jakub Jelinek * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Change EPERM into EACCES. * rt/Makefile (tests): Add tst-mqueue9. * rt/tst-mqueue9.c: New test. * rt/tst-mqueue4.c (do_test): Add test for mq_unlink of a too long name component. 2004-04-19 Ulrich Drepper * rt/tst-mqueue7.c (do_test): Make newargv const. --- rt/tst-mqueue4.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rt/tst-mqueue4.c') diff --git a/rt/tst-mqueue4.c b/rt/tst-mqueue4.c index fa83ece95a..aa31706f87 100644 --- a/rt/tst-mqueue4.c +++ b/rt/tst-mqueue4.c @@ -93,6 +93,18 @@ do_test (void) result = 1; } + if (mq_unlink (name) == 0) + { + puts ("mq_unlink with too long name component unexpectedly succeeded"); + result = 1; + } + else if (errno != ENAMETOOLONG) + { + printf ("mq_unlink with too long name component did not fail with " + "ENAMETOOLONG: %m\n"); + result = 1; + } + *p = '\0'; attr.mq_maxmsg = 1; attr.mq_msgsize = 3; -- cgit v1.2.3