From: Sergei Trofimovich Date: Tue, 14 Nov 2017 09:35:48 +0000 (+0000) Subject: sys-libs/glibc: added missing anchor to nsswitch.conf check, bug #627338 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=5d8d827255a5f831247dc838879c4582b46210c4;p=gentoo.git sys-libs/glibc: added missing anchor to nsswitch.conf check, bug #627338 Original change meant to ignore lines starting with comment but was missing leading like anchor. Added. Reported-by: Dennis Schridde Bug: https://bugs.gentoo.org/627338 Package-Manager: Portage-2.3.13, Repoman-2.3.4 --- diff --git a/sys-libs/glibc/glibc-2.26-r3.ebuild b/sys-libs/glibc/glibc-2.26-r3.ebuild index 98ab050e12fb..d66113063e92 100644 --- a/sys-libs/glibc/glibc-2.26-r3.ebuild +++ b/sys-libs/glibc/glibc-2.26-r3.ebuild @@ -194,7 +194,7 @@ pkg_pretend() { if [[ -e ${EROOT}/etc/nsswitch.conf ]] ; then local entry for entry in passwd group shadow; do - if ! egrep -q "[ \t]*${entry}:.*files" "${EROOT}"/etc/nsswitch.conf; then + if ! egrep -q "^[ \t]*${entry}:.*files" "${EROOT}"/etc/nsswitch.conf; then eerror "Your ${EROOT}/etc/nsswitch.conf is out of date." eerror "Please make sure you have 'files' entries for" eerror "'passwd:', 'group:' and 'shadow:' databases."