summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-21 02:16:45 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-21 02:16:45 +0000
commitfd7a2150cc99a15a5bca3d78dcd6034a927e962f (patch)
tree76eb86a07fee9dd5e0be61fd23670133f8b61a38 /eclass
parentclean up multilib header creation, add support for s390 / s390x, and punt vir... (diff)
downloadgentoo-2-fd7a2150cc99a15a5bca3d78dcd6034a927e962f.tar.gz
gentoo-2-fd7a2150cc99a15a5bca3d78dcd6034a927e962f.tar.bz2
gentoo-2-fd7a2150cc99a15a5bca3d78dcd6034a927e962f.zip
create user home in $ROOT rather than $D
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass16
1 files changed, 8 insertions, 8 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index e84ef2c718f4..53ba3004c3b9 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.192 2005/07/15 22:16:49 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.193 2005/07/21 02:16:45 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -596,15 +596,15 @@ enewuser() {
fi
;;
esac
- export SANDBOX_ON=${oldsandbox}
- if [ ! -e "${ehome}" ] && [ ! -e "${D}/${ehome}" ]
- then
- einfo " - Creating ${ehome} in ${D}"
- dodir ${ehome}
- fowners ${euser} ${ehome}
- fperms 755 ${ehome}
+ if [[ ! -e ${ROOT}/${ehome} ]] ; then
+ einfo " - Creating ${ehome} in ${ROOT}"
+ mkdir -p "${ROOT}/${ehome}"
+ chown ${euser} "${ROOT}/${ehome}"
+ chmod 755 "${ROOT}/${ehome}"
fi
+
+ export SANDBOX_ON=${oldsandbox}
}
# Simplify/standardize adding groups to the system