- (bal) Cygwin special handling of empty passwords wrong. Patch by

vinschen@redhat.com
This commit is contained in:
Ben Lindstrom 2002-06-21 00:26:22 +00:00
parent 45933dd9aa
commit 115422f918
2 changed files with 3 additions and 8 deletions

View File

@ -23,6 +23,8 @@
- deraadt@cvs.openbsd.org 2002/06/17 06:05:56 - deraadt@cvs.openbsd.org 2002/06/17 06:05:56
[scp.c] [scp.c]
make usage like man page make usage like man page
- (bal) Cygwin special handling of empty passwords wrong. Patch by
vinschen@redhat.com
20020613 20020613
- (bal) typo of setgroup for cygwin. Patch by vinschen@redhat.com - (bal) typo of setgroup for cygwin. Patch by vinschen@redhat.com
@ -951,4 +953,4 @@
- (stevesk) entropy.c: typo in debug message - (stevesk) entropy.c: typo in debug message
- (djm) ssh-keygen -i needs seeded RNG; report from markus@ - (djm) ssh-keygen -i needs seeded RNG; report from markus@
$Id: ChangeLog,v 1.2223 2002/06/21 00:10:58 mouring Exp $ $Id: ChangeLog,v 1.2224 2002/06/21 00:26:22 mouring Exp $

View File

@ -123,13 +123,6 @@ auth_password(Authctxt *authctxt, const char *password)
#ifndef HAVE_CYGWIN #ifndef HAVE_CYGWIN
if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES) if (pw->pw_uid == 0 && options.permit_root_login != PERMIT_YES)
return 0; return 0;
#endif
#ifdef HAVE_CYGWIN
/*
* Empty password is only possible on NT if the user has _really_
* an empty password and authentication is done, though.
*/
if (!is_winnt)
#endif #endif
if (*password == '\0' && options.permit_empty_passwd == 0) if (*password == '\0' && options.permit_empty_passwd == 0)
return 0; return 0;