Initial commit
This commit is contained in:
23
runit/patches/0014-chkshsgr.c_use_gid_t.patch
Normal file
23
runit/patches/0014-chkshsgr.c_use_gid_t.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
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);
|
||||
Reference in New Issue
Block a user