From e0dfd9cd1ed4c93647c2be20d77d2c3734e24bab Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 13 Jan 2009 21:27:30 +0000 Subject: Use a new 'usersync' feature to control dropping of privileges for --sync, since it's fairly common for people to have inconsistent permissions between $PORTDIR and contained files/directories. svn path=/main/trunk/; revision=12496 --- pym/_emerge/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pym/_emerge') diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 796275588..991cb2d85 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -12068,7 +12068,8 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): spawn_kwargs = {} spawn_kwargs["env"] = settings.environ() - if portage.data.secpass >= 2 and \ + if 'usersync' in settings.features and \ + portage.data.secpass >= 2 and \ (st.st_uid != os.getuid() and st.st_mode & 0700 or \ st.st_gid != os.getgid() and st.st_mode & 0070): try: -- cgit v1.2.3-1-g7c22