summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Boehm <hollow@gentoo.org>2009-03-02 20:17:47 +0000
committerBenedikt Boehm <hollow@gentoo.org>2009-03-02 20:17:47 +0000
commit5b373c96db2b3e5d4edbfdbcfffb627583e78e00 (patch)
tree24fd38108b4b4035600729e46f5677749f97b58b /sys-apps/baselayout/baselayout-2.0.0.ebuild
parentremove old (diff)
downloadhistorical-5b373c96db2b3e5d4edbfdbcfffb627583e78e00.tar.gz
historical-5b373c96db2b3e5d4edbfdbcfffb627583e78e00.tar.bz2
historical-5b373c96db2b3e5d4edbfdbcfffb627583e78e00.zip
fix /etc/shadow permissions when building stages
Package-Manager: portage-2.2_rc23/cvs/Linux i686
Diffstat (limited to 'sys-apps/baselayout/baselayout-2.0.0.ebuild')
-rw-r--r--sys-apps/baselayout/baselayout-2.0.0.ebuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys-apps/baselayout/baselayout-2.0.0.ebuild b/sys-apps/baselayout/baselayout-2.0.0.ebuild
index 926409d53a04..a17351fecb32 100644
--- a/sys-apps/baselayout/baselayout-2.0.0.ebuild
+++ b/sys-apps/baselayout/baselayout-2.0.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.0.0.ebuild,v 1.7 2008/08/19 17:51:19 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/baselayout/baselayout-2.0.0.ebuild,v 1.8 2009/03/02 20:17:47 hollow Exp $
inherit multilib
@@ -177,6 +177,11 @@ pkg_postinst() {
cp -p "${ROOT}usr/share/baselayout/${x}" "${ROOT}"etc
done
+ # fix shadow permissions to not be world-readable
+ for x in shadow ; do
+ [ -e "${ROOT}etc/${x}" ] && chmod 0600 "${ROOT}etc/$x"
+ done
+
# This is also written in src_install (so it's in CONTENTS), but
# write it here so that the new version is immediately in the file
# (without waiting for the user to do etc-update)