opnsense-ports/sysutils/runit-faster/files/patch-src_prot.c
Franco Fichtner 538c22e7c3 */*: sync with upstream
Taken from: HardenedBSD
2018-03-09 03:40:20 +01:00

20 lines
414 B
C

--- src/prot.c.orig 2018-03-05 09:31:55 UTC
+++ src/prot.c
@@ -3,7 +3,7 @@
#include "hasshsgr.h"
#include "prot.h"
-int prot_gid(int gid)
+int prot_gid(gid_t gid)
{
#ifdef HASSHORTSETGROUPS
short x[2];
@@ -15,7 +15,7 @@ int prot_gid(int gid)
return setgid(gid); /* _should_ be redundant, but on some systems it isn't */
}
-int prot_uid(int uid)
+int prot_uid(uid_t uid)
{
return setuid(uid);
}