summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-25 22:07:31 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-25 22:07:31 +0000
commit9c5323a842cfac9fb21af00167df86893e13be45 (patch)
treea3707db1e7b21f71b49b57680d1888f4c7796443 /eclass/eutils.eclass
parentBring back R-1.9.0-r1 until <=dev-python/rpy-0.3.5-r1 are removed from portage. (diff)
downloadgentoo-2-9c5323a842cfac9fb21af00167df86893e13be45.tar.gz
gentoo-2-9c5323a842cfac9fb21af00167df86893e13be45.tar.bz2
gentoo-2-9c5323a842cfac9fb21af00167df86893e13be45.zip
fix the home logic in enewuser properly #93955
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index e63d1432bdfd..9b5168dee31c 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.175 2005/05/25 00:04:25 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.176 2005/05/25 22:07:31 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -521,7 +521,7 @@ enewuser() {
# handle homedir
local ehome="$1"; shift
- if [ ! -z "${ehome}" ] && [ "${eshell}" != "-1" ]
+ if [ -z "${ehome}" ] || [ "${eshell}" == "-1" ]
then
ehome="/dev/null"
fi