Mercurial > gftp.yaz
comparison lib/sshv2.c @ 232:b8d14c2c3097
2003-7-25 Brian Masney <masneyb@gftp.org>
* lib/pty.c - prefer to use openpty() instead of grantpt() if it is
available (for FreeBSD)
* lib/sshv2.c - fixes for FreeBSD password prompt (from Oliver Lehmann
<oliver@FreeBSD.ORG>)
* src/gtk/gftp-gtk.h src/text/gftp-text.h - added
__attribute__((format(printf, 3, 4))) to logging functions (from
Oliver Lehmann <oliver@FreeBSD.ORG>)
author | masneyb |
---|---|
date | Fri, 25 Jul 2003 20:21:26 +0000 |
parents | f330309d2f17 |
children | b42e7233533a |
comparison
equal
deleted
inserted
replaced
231:e599812712f0 | 232:b8d14c2c3097 |
---|---|
289 } | 289 } |
290 rem -= rd; | 290 rem -= rd; |
291 diff += rd; | 291 diff += rd; |
292 tempstr[diff] = '\0'; | 292 tempstr[diff] = '\0'; |
293 | 293 |
294 if (diff >= 10 && strcmp (tempstr + diff - 9, "assword: ") == 0) | 294 if ( (strcmp (tempstr, "Password:") == 0) || |
295 (diff >= 10 && strcmp (tempstr + diff - 9, "assword: ") == 0)) | |
295 { | 296 { |
296 if (wrotepw) | 297 if (wrotepw) |
297 { | 298 { |
298 ok = SSH_ERROR_BADPASS; | 299 ok = SSH_ERROR_BADPASS; |
299 break; | 300 break; |