runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c3c65bcdfe53aac4f1bd27f4bfb3faccabfa2fd3
parent 3295cb4865759a71c27ca5fe4ade980c8b69db6c
Author: Érico Rolim <erico.erc@gmail.com>
Date:   Sun, 16 Aug 2020 15:19:57 -0300

chkshsgr.c: use gid_t.

Diffstat:
Msrc/chkshsgr.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/chkshsgr.c b/src/chkshsgr.c @@ -1,10 +1,11 @@ /* Public domain. */ +#include <sys/types.h> #include <unistd.h> int main() { - short x[4]; + gid_t x[4]; x[0] = x[1] = 0; if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1);