changeset 14279:694ea6e13a86

auth: userdb passwd iteration skips now also users with /usr/sbin/nologin shell
author Timo Sirainen <tss@iki.fi>
date Sun, 04 Mar 2012 13:56:33 +0200
parents 31ae11fe18b2
children 92c6e963176e
files src/auth/userdb-passwd.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/userdb-passwd.c	Sun Mar 04 13:20:21 2012 +0200
+++ b/src/auth/userdb-passwd.c	Sun Mar 04 13:56:33 2012 +0200
@@ -150,7 +150,8 @@
 	/* skip entries that don't have a valid shell.
 	   they're again probably not real users. */
 	if (strcmp(pw->pw_shell, "/bin/false") == 0 ||
-	    strcmp(pw->pw_shell, "/sbin/nologin") == 0)
+	    strcmp(pw->pw_shell, "/sbin/nologin") == 0 ||
+	    strcmp(pw->pw_shell, "/usr/sbin/nologin") == 0)
 		return FALSE;
 	return TRUE;
 }