summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-03-10 08:49:05 +0000
committerMike Frysinger <vapier@gentoo.org>2003-03-10 08:49:05 +0000
commita3443654b47c7111375c0c5bf94414eb7bd5f947 (patch)
tree37e1a9cb68f0aad0e0925ec2cd7d65b6b3d41c16 /eclass/eutils.eclass
parentCloses #16795 (diff)
downloadhistorical-a3443654b47c7111375c0c5bf94414eb7bd5f947.tar.gz
historical-a3443654b47c7111375c0c5bf94414eb7bd5f947.tar.bz2
historical-a3443654b47c7111375c0c5bf94414eb7bd5f947.zip
tweak uid adding
Diffstat (limited to 'eclass/eutils.eclass')
-rw-r--r--eclass/eutils.eclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index b9c9d1cbdccb..2718bd8f1b3c 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.26 2003/03/06 20:35:26 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.27 2003/03/10 08:49:05 vapier Exp $
#
# Author: Martin Schlemmer <azarah@gentoo.org>
#
@@ -452,6 +452,7 @@ get_number_of_jobs() {
# Default values if you do not specify any:
# username: REQUIRED !
# uid: next available (see useradd(8))
+# note: pass -1 to get default behavior
# shell: /bin/false
# homedir: /dev/null
# groups: none
@@ -482,7 +483,7 @@ enewuser() {
# handle uid
local euid="$1"; shift
- if [ ! -z "${euid}" ] ; then
+ if [ ! -z "${euid}" ] && [ "${euid}" != "-1" ] ; then
if [ ${euid} -gt 0 ] ; then
opts="${opts} -u ${euid}"
else