about summary refs log tree commit diff
path: root/nss/nss_files/files-spwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/nss_files/files-spwd.c')
-rw-r--r--nss/nss_files/files-spwd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nss/nss_files/files-spwd.c b/nss/nss_files/files-spwd.c
index df0106bdd6..27cc5882a4 100644
--- a/nss/nss_files/files-spwd.c
+++ b/nss/nss_files/files-spwd.c
@@ -32,6 +32,7 @@ struct spent_data {};
 
 DB_LOOKUP (spnam, 1 + strlen (name), (".%s", name),
 	   {
-	     if (! strcmp (name, result->sp_namp))
+	     if (name[0] != '+' && name[0] != '-'
+		 && ! strcmp (name, result->sp_namp))
 	       break;
 	   }, const char *name)