0
Files
slackbuilds/runit/patches/0014-chkshsgr.c_use_gid_t.patch
2023-11-19 18:01:40 +03:00

24 lines
520 B
Diff

commit c3c65bcdfe53aac4f1bd27f4bfb3faccabfa2fd3
Author: Érico Rolim <erico.erc@gmail.com>
Date: Sun Aug 16 15:19:57 2020 -0300
chkshsgr.c: use gid_t.
diff --git a/src/chkshsgr.c b/src/chkshsgr.c
index 38c352d..31eda67 100644
--- a/runit-2.1.2/src/chkshsgr.c
+++ b/runit-2.1.2/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);