From 602cd27685b0c534e7027e6b6135b72ae880dff8 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Wed, 5 Jan 2005 04:09:34 +0000 Subject: [PATCH] fix annoying userpriv warnings, bug #76717 --- eclass/vim-plugin.eclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/eclass/vim-plugin.eclass b/eclass/vim-plugin.eclass index 5b33e9421c8d..e9bee246513c 100644 --- a/eclass/vim-plugin.eclass +++ b/eclass/vim-plugin.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.9 2004/11/13 18:25:52 ciaranm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/vim-plugin.eclass,v 1.10 2005/01/05 04:09:34 ciaranm Exp $ # # This eclass simplifies installation of app-vim plugins into # /usr/share/vim/vimfiles. This is a version-independent directory @@ -23,8 +23,12 @@ SLOT="0" vim-plugin_src_install() { local f + ebegin "Fixing file permissions" # Make sure perms are good - chmod -R a+rX ${S} + chmod -R a+rX ${S} || die "chmod failed" + find ${S} -user 'portage' -exec chown root '{}' \; || die "chown failed" + find ${S} -group 'portage' -exec chgrp root '{}' \; || die "chgrp failed" + eend $? # Install non-vim-help-docs cd ${S} -- 2.26.2