Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15
lftp.10482
relax-ssh-password-prompt-recognition.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File relax-ssh-password-prompt-recognition.patch of Package lftp.10482
diff -Naur lftp-4.7.4/src/SSH_Access.cc lftp-4.7.4.new/src/SSH_Access.cc --- lftp-4.7.4/src/SSH_Access.cc 2016-09-08 14:38:15.000000000 +0200 +++ lftp-4.7.4.new/src/SSH_Access.cc 2019-01-07 15:32:39.151156788 +0100 @@ -44,6 +44,11 @@ return (e-b>=len && !strncasecmp(b,suffix,len)); } +static bool contains(const char *b, const char *e) +{ + return (1 && strcasestr(b,e)); +} + int SSH_Access::HandleSSHMessage() { int m=STALL; @@ -55,9 +60,7 @@ { if(s>0 && b[s-1]==' ') s--; - if(ends_with(b,b+s,"password:") - || (ends_with(b,b+s,"':") && s>10) - || (begins_with(b,b+s,"password for ") && b[s-1]==':')) + if(contains(b,"password") && b[s-1]==':') { if(!pass) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor