FreeBSD Bugzilla – Attachment 25215 Details for
Bug 42980
devel/distcc: distccd can't be started by users with gid 0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
distcc.diff
distcc.diff (text/x-diff; charset="us-ascii"), 1.50 KB, created by
Frerich Raabe
on 2002-09-23 14:14:05 UTC
(
hide
)
Description:
distcc.diff
Filename:
MIME Type:
Creator:
Frerich Raabe
Created:
2002-09-23 14:14:05 UTC
Size:
1.50 KB
patch
obsolete
>diff -ruN distcc.orig/Makefile distcc/Makefile >--- distcc.orig/Makefile Mon Sep 23 11:47:54 2002 >+++ distcc/Makefile Mon Sep 23 11:52:21 2002 >@@ -7,6 +7,7 @@ > > PORTNAME= distcc > PORTVERSION= 0.10.1 >+PORTREVISION= 1 > CATEGORIES= devel > MASTER_SITES= http://distcc.samba.org/ftp/distcc/ > >diff -ruN distcc.orig/files/patch-src::daemon.c distcc/files/patch-src::daemon.c >--- distcc.orig/files/patch-src::daemon.c Thu Jan 1 01:00:00 1970 >+++ distcc/files/patch-src::daemon.c Mon Sep 23 11:49:52 2002 >@@ -0,0 +1,26 @@ >+Index: src/daemon.c >+=================================================================== >+RCS file: /cvsroot/distcc/src/daemon.c,v >+retrieving revision 1.74 >+retrieving revision 1.75 >+diff -u -3 -p -r1.74 -r1.75 >+--- src/daemon.c 18 Sep 2002 11:36:09 -0000 1.74 >++++ src/daemon.c 23 Sep 2002 04:56:41 -0000 1.75 >+@@ -1,7 +1,7 @@ >+ /* -*- c-file-style: "java"; indent-tabs-mode: nil -*- >+ * >+ * distcc -- A simple distributed compiler system >+- * $Header: /cvsroot/distcc/src/daemon.c,v 1.74 2002/09/18 11:36:09 mbp Exp $ >++ * $Header: /cvsroot/distcc/src/daemon.c,v 1.75 2002/09/23 04:56:41 mbp Exp $ >+ * >+ * Copyright (C) 2002 by Martin Pool <mbp@samba.org> >+ * >+@@ -170,7 +170,7 @@ static int dcc_inetd_server(void) >+ 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; >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42980
:
25214
| 25215