From: Mike Frysinger Date: Tue, 5 Oct 2004 05:15:59 +0000 (+0000) Subject: when using nscd, getent might have to flush the tables to make sure the cache doesnt... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9fb5abb885f00982490914ad3c42f3cd7ed34517;p=gentoo.git when using nscd, getent might have to flush the tables to make sure the cache doesnt screw it up #66182 --- diff --git a/eclass/eutils.eclass b/eclass/eutils.eclass index 21e9bb94ec77..553cf3f1b639 100644 --- a/eclass/eutils.eclass +++ b/eclass/eutils.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.112 2004/10/05 03:43:02 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v 1.113 2004/10/05 05:15:59 vapier Exp $ # # Author: Martin Schlemmer # @@ -584,6 +584,7 @@ egetent() { fi pw show "${action}" "$2" -q else + which nscd >& /dev/null && nscd -i "$1" getent "$1" "$2" fi }