From: Yang Xu Date: Tue, 29 Dec 2020 11:03:11 +0000 (+0100) Subject: semctl.2: Correct SEM_STAT_ANY description X-Git-Tag: man-pages-5.11~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43ebbd192571b221b975c0d94bda3bcf0d633338;p=thirdparty%2Fman-pages.git semctl.2: Correct SEM_STAT_ANY description Since kernel commit a280d6dc77eb ("ipc/sem: introduce semctl(SEM_STAT_ANY)"), it only skips read access check when using SEM_STAT_ANY command. And it should use the semid_ds struct instead of seminfo struct. Fix this. Signed-off-by: Yang Xu Acked-by: Manfred Spraul Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- diff --git a/man2/semctl.2 b/man2/semctl.2 index fb0d34c4cb..a2d3db6777 100644 --- a/man2/semctl.2 +++ b/man2/semctl.2 @@ -297,8 +297,8 @@ all semaphore sets on the system. .TP .BR SEM_STAT_ANY " (Linux-specific, since Linux 4.17)" Return a -.I seminfo -structure containing the same information as for +.I semid_ds +structure as for .BR SEM_STAT . However, .I sem_perm.mode