diff options
author | Damien Miller <djm@mindrot.org> | 2003-01-30 10:20:56 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-01-30 10:20:56 +1100 |
commit | 4d9dc1aa82a8c1e5feaef74ba1ee532b02823947 (patch) | |
tree | 4d2145d730a71dc88a333aadca02b36e534ba58b /auth-passwd.c | |
parent | cd6853c31c226d4538f0a46b4ebcdcc734d4b6c0 (diff) |
- (djm) Unbreak root password auth. Spotted by dtucker@zip.com.au
Diffstat (limited to 'auth-passwd.c')
-rw-r--r-- | auth-passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/auth-passwd.c b/auth-passwd.c index d419fa0d2..9901d4842 100644 --- a/auth-passwd.c +++ b/auth-passwd.c | |||
@@ -117,7 +117,7 @@ auth_password(Authctxt *authctxt, const char *password) | |||
117 | if (pw == NULL) | 117 | if (pw == NULL) |
118 | return 0; | 118 | return 0; |
119 | #ifndef HAVE_CYGWIN | 119 | #ifndef HAVE_CYGWIN |
120 | if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_NO_PASSWD) | 120 | if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) |
121 | return 0; | 121 | return 0; |
122 | #endif | 122 | #endif |
123 | if (*password == '\0' && options.permit_empty_passwd == 0) | 123 | if (*password == '\0' && options.permit_empty_passwd == 0) |