From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-commits+bounces-362704-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1Qhf54-0007gu-Tk
	for garchives@archives.gentoo.org; Fri, 15 Jul 2011 09:53:11 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C194221C14B;
	Fri, 15 Jul 2011 09:52:28 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by pigeon.gentoo.org (Postfix) with ESMTP id 89E2421C14D
	for <gentoo-commits@lists.gentoo.org>; Fri, 15 Jul 2011 09:52:28 +0000 (UTC)
Received: from pelican.gentoo.org (unknown [66.219.59.40])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id E4F942AC325
	for <gentoo-commits@lists.gentoo.org>; Fri, 15 Jul 2011 09:52:27 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by pelican.gentoo.org (Postfix) with ESMTP id AB45D8004A
	for <gentoo-commits@lists.gentoo.org>; Fri, 15 Jul 2011 09:52:26 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" <mgorny@gentoo.org>
Message-ID: <e68f8d2efd2462d614933a6eeff9c5123e21b07b.mgorny@gentoo>
Subject: [gentoo-commits] proj/gentoopm:master commit in: gentoopm/paludispm/
X-VCS-Repository: proj/gentoopm
X-VCS-Files: gentoopm/paludispm/config.py
X-VCS-Directories: gentoopm/paludispm/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: e68f8d2efd2462d614933a6eeff9c5123e21b07b
Date: Fri, 15 Jul 2011 09:52:26 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 
X-Archives-Hash: 20a210e4f980825c2010b4ba46ca2369

commit:     e68f8d2efd2462d614933a6eeff9c5123e21b07b
Author:     Micha=C5=82 G=C3=B3rny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 15 08:58:09 2011 +0000
Commit:     Micha=C5=82 G=C3=B3rny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 15 08:58:09 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gentoopm.git;=
a=3Dcommit;h=3De68f8d2e

Paludis: don't assume userpriv enabled when reduced_uid=3D=3D0.

---
 gentoopm/paludispm/config.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gentoopm/paludispm/config.py b/gentoopm/paludispm/config.py
index 6bdd17c..5c521ba 100644
--- a/gentoopm/paludispm/config.py
+++ b/gentoopm/paludispm/config.py
@@ -14,7 +14,7 @@ class PaludisConfig(PMConfig):
=20
 	@property
 	def userpriv_enabled(self):
-		return True
+		return self.userpriv_uid !=3D 0
=20
 	@property
 	def userpriv_uid(self):