diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-04-19 17:28:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-04-19 17:28:57 +0000 |
commit | 0a901ba456d0a0e6dfd0488b3f20f03d9e103d6f (patch) | |
tree | a6297b186f5aecd0a0466f6f44f074c8613c8be2 /rt/tst-mqueue4.c | |
parent | 72c41589771584da6693ca8a340a19d1cd6bef06 (diff) | |
download | glibc-0a901ba456d0a0e6dfd0488b3f20f03d9e103d6f.tar.gz glibc-0a901ba456d0a0e6dfd0488b3f20f03d9e103d6f.tar.xz glibc-0a901ba456d0a0e6dfd0488b3f20f03d9e103d6f.zip |
Update.
2004-04-19 Jakub Jelinek <jakub@redhat.com> * 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 <drepper@redhat.com> * rt/tst-mqueue7.c (do_test): Make newargv const.
Diffstat (limited to 'rt/tst-mqueue4.c')
-rw-r--r-- | rt/tst-mqueue4.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; |