diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-06-07 15:07:54 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-06-07 15:07:54 -0400 |
commit | e1d2a8e2394640e4b573117b7653fd0f163671fe (patch) | |
tree | 24369bbad819333e0e8bdd7a544b0aad4a6ff189 /src/mq/mq_unlink.c | |
parent | 2b0cedac8d03bbeb1bd0e1d77fab775b1d9f3e25 (diff) | |
download | musl-e1d2a8e2394640e4b573117b7653fd0f163671fe.tar.gz musl-e1d2a8e2394640e4b573117b7653fd0f163671fe.tar.xz musl-e1d2a8e2394640e4b573117b7653fd0f163671fe.zip |
mq names without leading / have impl-def behavior; allowing them is easier
Diffstat (limited to 'src/mq/mq_unlink.c')
-rw-r--r-- | src/mq/mq_unlink.c | 5 |
1 files changed, 1 insertions, 4 deletions
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; |