]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: userdb passwd iteration skips now also users with /usr/sbin/nologin shell
authorTimo Sirainen <tss@iki.fi>
Sun, 4 Mar 2012 11:56:33 +0000 (13:56 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 Mar 2012 11:56:33 +0000 (13:56 +0200)
src/auth/userdb-passwd.c

index 42430e5981e0615ee16ced2389f4075145f8c91e..6d29275c38bffa09eeec2ce4af6eab63024892a9 100644 (file)
@@ -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;
 }