aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/distcc/Makefile1
-rw-r--r--devel/distcc/files/patch-src::daemon.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/distcc/Makefile b/devel/distcc/Makefile
index fa6e750c9c8a..d446f291d18a 100644
--- a/devel/distcc/Makefile
+++ b/devel/distcc/Makefile
@@ -7,6 +7,7 @@
PORTNAME= distcc
PORTVERSION= 0.10.1
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://distcc.samba.org/ftp/distcc/
diff --git a/devel/distcc/files/patch-src::daemon.c b/devel/distcc/files/patch-src::daemon.c
new file mode 100644
index 000000000000..e88efad2a8ae
--- /dev/null
+++ b/devel/distcc/files/patch-src::daemon.c
@@ -0,0 +1,11 @@
+--- src/daemon.c.orig Mon Sep 23 11:15:29 2002
++++ src/daemon.c Mon Sep 23 11:15:37 2002
+@@ -170,7 +170,7 @@
+ int dcc_refuse_root(void)
+ {
+ /* Just be careful */
+- if (getuid() == 0 || geteuid() == 0 || getgid() == 0 || getegid() == 0) {
++ if (getuid() == 0 || geteuid() == 0) {
+ rs_log_crit("distccd must not be run as root!");
+ return EXIT_DISTCC_FAILED;
+ }