From: Timo Sirainen Date: Sun, 4 Mar 2012 11:56:33 +0000 (+0200) Subject: auth: userdb passwd iteration skips now also users with /usr/sbin/nologin shell X-Git-Tag: 2.1.2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34ae25c8b623a0cf28d052c02c8bbd96309fbc85;p=thirdparty%2Fdovecot%2Fcore.git auth: userdb passwd iteration skips now also users with /usr/sbin/nologin shell --- diff --git a/src/auth/userdb-passwd.c b/src/auth/userdb-passwd.c index 42430e5981..6d29275c38 100644 --- a/src/auth/userdb-passwd.c +++ b/src/auth/userdb-passwd.c @@ -150,7 +150,8 @@ passwd_iterate_want_pw(struct passwd *pw, const struct auth_settings *set) /* 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; }