From 5d8d827255a5f831247dc838879c4582b46210c4 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 14 Nov 2017 09:35:48 +0000 Subject: [PATCH] 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 --- sys-libs/glibc/glibc-2.26-r3.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." -- 2.26.2