From e1d2a8e2394640e4b573117b7653fd0f163671fe Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 7 Jun 2011 15:07:54 -0400 Subject: mq names without leading / have impl-def behavior; allowing them is easier --- src/mq/mq_unlink.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mq/mq_unlink.c') diff --git a/src/mq/mq_unlink.c b/src/mq/mq_unlink.c index 1bb92af1..6a08a4c5 100644 --- a/src/mq/mq_unlink.c +++ b/src/mq/mq_unlink.c @@ -5,10 +5,7 @@ int mq_unlink(const char *name) { int ret; - if (*name++ != '/') { - errno = EINVAL; - return -1; - } + if (*name == '/') name++; ret = __syscall(SYS_mq_unlink, name); if (ret < 0) { if (ret == -EPERM) ret = -EACCES; -- cgit v1.2.1