summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2009-10-18 07:52:23 +0000
committerFabian Groffen <grobian@gentoo.org>2009-10-18 07:52:23 +0000
commit0bbd0a4c9f1452b33fb890c0f2bc6814d7c664aa (patch)
tree67c96adf18a1d7221bb16494d2c9c708c802765c /eclass
parentget la path list from $D rather than / as pointed out by Ryan Hill #283761#10 (diff)
downloadhistorical-0bbd0a4c9f1452b33fb890c0f2bc6814d7c664aa.tar.gz
historical-0bbd0a4c9f1452b33fb890c0f2bc6814d7c664aa.tar.bz2
historical-0bbd0a4c9f1452b33fb890c0f2bc6814d7c664aa.zip
move euser argument to the end, to conform to more implementations of useradd, bug #271081
Diffstat (limited to 'eclass')
-rw-r--r--eclass/eutils.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass
index 3094db0c5a97..028079972834 100644
--- a/eclass/eutils.eclass
+++ b/eclass/eutils.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.320 2009/09/24 02:49:32 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.321 2009/10/18 07:52:23 grobian Exp $
# @ECLASS: eutils.eclass
# @MAINTAINER:
@@ -648,12 +648,14 @@ enewuser() {
*)
if [[ -z $@ ]] ; then
- useradd ${opts} ${euser} \
+ useradd ${opts} \
-c "added by portage for ${PN}" \
+ ${euser} \
|| die "enewuser failed"
else
einfo " - Extra: $@"
- useradd ${opts} ${euser} "$@" \
+ useradd ${opts} "$@" \
+ ${euser} \
|| die "enewuser failed"
fi
;;