diff options
Diffstat (limited to 'eclass/user.eclass')
-rw-r--r-- | eclass/user.eclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/user.eclass b/eclass/user.eclass index 553161139749..575bb685faa2 100644 --- a/eclass/user.eclass +++ b/eclass/user.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.9 2011/11/03 15:29:39 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/user.eclass,v 1.10 2011/11/04 13:08:23 naota Exp $ # @ECLASS: user.eclass # @MAINTAINER: @@ -78,10 +78,10 @@ egetent() { # lookup by uid/gid local opts if [[ ${key} == [[:digit:]]* ]] ; then - [[ ${action} == "user" ]] && opts="-u" || opts="-g" + [[ ${db} == "user" ]] && opts="-u" || opts="-g" fi - pw show ${action} ${opts} "${key}" -q + pw show ${db} ${opts} "${key}" -q ;; *-netbsd*|*-openbsd*) grep "${key}:\*:" /etc/${db} |