Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jun 2006 12:00:40 GMT
From:      Peter Thoenen <peter.thoenen@yahoo.com>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/98784: security/tor-devel doesn't take UIDs and GIDs below 1000
Message-ID:  <200606181200.k5IC0eXj071383@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/98784; it has been noted by GNATS.

From: Peter Thoenen <peter.thoenen@yahoo.com>
To: bug-followup@FreeBSD.org
Cc: freebsd-listen@fabiankeil.de
Subject: Re: ports/98784: security/tor-devel doesn't take UIDs and GIDs below 1000
Date: Sun, 18 Jun 2006 04:57:47 -0700 (PDT)

 --0-287929167-1150631867=:4016
 Content-Type: text/plain; charset=iso-8859-1
 Content-Transfer-Encoding: 8bit
 Content-Id: 
 Content-Disposition: inline
 
 Might as well make this a maintainer update while I am at it.
 --0-287929167-1150631867=:4016
 Content-Type: text/plain; name="tor-devel.diff.txt"
 Content-Description: 3310809015-tor-devel.diff.txt
 Content-Disposition: inline; filename="tor-devel.diff.txt"
 
 diff -ruN tor-devel.orig/Makefile tor-devel/Makefile
 --- tor-devel.orig/Makefile	Mon Jun 12 00:11:47 2006
 +++ tor-devel/Makefile	Mon Jun 12 00:11:59 2006
 @@ -6,7 +6,7 @@
  #
  
  PORTNAME=	tor
 -PORTVERSION=	0.1.1.20
 +PORTVERSION=	0.1.1.21
  CATEGORIES=	security net
  MASTER_SITES=	http://tor.eff.org/dist/ \
  		http://mirror.onionland.org/dist/
 diff -ruN tor-devel.orig/distinfo tor-devel/distinfo
 --- tor-devel.orig/distinfo	Mon Jun 12 00:11:47 2006
 +++ tor-devel/distinfo	Mon Jun 12 00:12:28 2006
 @@ -1,3 +1,3 @@
 -MD5 (tor-0.1.1.20.tar.gz) = 51aac1749ff2549e8f3e1a172dc66992
 -SHA256 (tor-0.1.1.20.tar.gz) = b251fd9079a40345beb5b67bcdf30c3292ee9220d2d062d583b89f3526015138
 -SIZE (tor-0.1.1.20.tar.gz) = 828833
 +MD5 (tor-0.1.1.21.tar.gz) = 7eea8dbb215d771d275fb42a06f38e76
 +SHA256 (tor-0.1.1.21.tar.gz) = 3b8449c1488ef82857b42144cf919a3c6cf1aacd165065904d8e62bc9a8b4437
 +SIZE (tor-0.1.1.21.tar.gz) = 833839
 diff -ruN tor-devel.orig/pkg-install tor-devel/pkg-install
 --- tor-devel.orig/pkg-install	Mon Jun 12 00:11:47 2006
 +++ tor-devel/pkg-install	Mon Jun 12 00:14:38 2006
 @@ -10,12 +10,14 @@
  case $2 in
  PRE-INSTALL)
  	USER=${TOR_USER}
 +	UID="256"
  	GROUP=${TOR_GROUP}
 +	GID="256"
  
  	if pw group show "${GROUP}" 2>/dev/null; then
  		echo "You already have a group \"${GROUP}\", so I will use it."
  	else
 -		if pw groupadd ${GROUP} ; then
 +		if pw groupadd ${GROUP} -g ${GID}; then
  			echo "Added group \"${GROUP}\"."
  		else
  			echo "Adding group \"${GROUP}\" failed..."
 @@ -26,7 +28,7 @@
  	if pw user show "${USER}" 2>/dev/null; then
  		echo "You already have a user \"${USER}\", so I will use it."
  	else
 -		if pw useradd ${USER} -g ${GROUP} -h - \
 +		if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
  			-d /var/db/tor -c "Tor Daemon" -s /bin/sh
  		then
  			echo "Added user \"${USER}\"."
 
 --0-287929167-1150631867=:4016--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606181200.k5IC0eXj071383>