From 4e5e85f923b2e31af2b19a866af1324459248603 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 10 Aug 2025 18:28:02 +0200 Subject: [PATCH] man/man2/getgroups.2: setgroups(2): Don't use NULL as a 0-length array Reported-by: Christopher Bazley Signed-off-by: Alejandro Colomar --- man/man2/getgroups.2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/man2/getgroups.2 b/man/man2/getgroups.2 index 635158282..cdda43992 100644 --- a/man/man2/getgroups.2 +++ b/man/man2/getgroups.2 @@ -16,7 +16,7 @@ Standard C library .P .B #include .P -.BI "int setgroups(size_t " size ", const gid_t " list "[_Nullable " size ]); +.BI "int setgroups(size_t " size ", const gid_t " list [ size ]); .fi .P .RS -4 @@ -75,7 +75,7 @@ A process can drop all of its supplementary groups with the call: .P .in +4n .EX -setgroups(0, NULL); +setgroups(0, (gid_t [0]){}); .EE .in .SH RETURN VALUE -- 2.47.3