mirror of
https://git.freebsd.org/ports.git
synced 2025-06-23 13:40:34 -04:00
Runit is a daemontools replacement with the following features: - Service supervision - Clean process state - Reliable logging facility - Fast system bootup and shutdown - Packaging friendly - Small code size This very experimental port comes with a complete suite of configuration files and services to replace init(8) and rc(8) with runit for initializing your system. Heavily inspired by Void Linux' init scripts. For usage instructions visit: https://people.freebsd.org/~tobik/runit-faster.html Some fixes applied to sysutils/runit: - Fix most compiler warnings - Fix bug where runit will only halt the system instead of powering it off - Pet rclint for runsvdir - Pet portlint and regenerate patches
20 lines
414 B
C
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);
|
|
}
|