From fe5e72ae782238038ba4eaa3e1889e7bd16fecec Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 31 Jul 2019 17:25:40 -0400 Subject: [PATCH] fix semctl with SEM_STAT_ANY 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipc/semctl.c b/src/ipc/semctl.c index ce1fb164..e5dd5359 100644 --- 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); -- 2.25.1