summaryrefslogtreecommitdiff
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
commit11d3c5263c20ca41eab954d41a64b3120f1658f1 (patch)
treec765c021f87129b069460a88e0f21787698946a8 /eclass/eutils.eclass
parentget la path list from $D rather than / as pointed out by Ryan Hill #283761#10 (diff)
downloadgentoo-2-11d3c5263c20ca41eab954d41a64b3120f1658f1.tar.gz
gentoo-2-11d3c5263c20ca41eab954d41a64b3120f1658f1.tar.bz2
gentoo-2-11d3c5263c20ca41eab954d41a64b3120f1658f1.zip
move euser argument to the end, to conform to more implementations of useradd, bug #271081
Diffstat (limited to 'eclass/eutils.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
;;