projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
319b2d0
)
fix semctl with SEM_STAT_ANY
author
Rich Felker
<dalias@aerifal.cx>
Wed, 31 Jul 2019 21:25:40 +0000
(17:25 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 31 Jul 2019 21:25:40 +0000
(17:25 -0400)
due to the variadic signature, semctl needs to be made aware of any
new commands that take arguments. this was overlooked when commit
af55070eae5438476f921d827b7ae49e8141c3fe
added SEM_STAT_ANY.
src/ipc/semctl.c
patch
|
blob
|
history
diff --git
a/src/ipc/semctl.c
b/src/ipc/semctl.c
index ce1fb164fa8114bee5511c554b12ab0edd557aa3..e5dd535919a1bbdecf0d5ad26e026b6795f08949 100644
(file)
--- a/
src/ipc/semctl.c
+++ b/
src/ipc/semctl.c
@@
-20,7
+20,7
@@
int semctl(int id, int num, int cmd, ...)
va_list ap;
switch (cmd) {
case SETVAL: case GETALL: case SETALL: case IPC_STAT: case IPC_SET:
- case IPC_INFO: case SEM_INFO: case SEM_STAT:
+ case IPC_INFO: case SEM_INFO: case SEM_STAT:
case SEM_STAT_ANY:
va_start(ap, cmd);
arg = va_arg(ap, union semun);
va_end(ap);