From owner-freebsd-ports Mon Sep 23 6:30: 7 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8D6A37B401 for ; Mon, 23 Sep 2002 06:30:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66AE243E65 for ; Mon, 23 Sep 2002 06:30:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8NDU4Co019527 for ; Mon, 23 Sep 2002 06:30:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8NDU41N019526; Mon, 23 Sep 2002 06:30:04 -0700 (PDT) Date: Mon, 23 Sep 2002 06:30:04 -0700 (PDT) Message-Id: <200209231330.g8NDU41N019526@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: Frerich Raabe Subject: Re: ports/42980: devel/distcc: distccd can't be started by users with gid 0 Reply-To: Frerich Raabe Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR ports/42980; it has been noted by GNATS. From: Frerich Raabe To: freebsd-gnats-submit@FreeBSD.org, rael@vectorstar.net Cc: Subject: Re: ports/42980: devel/distcc: distccd can't be started by users with gid 0 Date: Mon, 23 Sep 2002 15:14:05 +0200 --Boundary-00=_dOxj9MkKMbVJdgy Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch updates the port devel/distcc from version 0.10.1 to 0.10.1_1,=20 fixing the bug as described in ports/42980. Patch was approved by the distc= c=20 author and is already in distcc's CVS. =2D - Frerich =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9jxOhKrbzRexv2VkRAj/CAKCUBoM+9qUgWPLiBGM3Z0Zo1xtKbwCgilR0 Gf1F8PH4YKjPvRRxne+WZZ0=3D =3DSAyo =2D----END PGP SIGNATURE----- --Boundary-00=_dOxj9MkKMbVJdgy Content-Type: text/x-diff; charset="us-ascii"; name="distcc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="distcc.diff" 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 + * +@@ -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; + } --Boundary-00=_dOxj9MkKMbVJdgy-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message