]> git.saurik.com Git - apt.git/commit
methods/ftp: Cope with weird PASV responses
authorJulian Andres Klode <jak@debian.org>
Mon, 27 Jun 2016 08:54:26 +0000 (10:54 +0200)
committerJulian Andres Klode <jak@debian.org>
Mon, 27 Jun 2016 08:58:29 +0000 (10:58 +0200)
commit25a694165ae46c159e0d91bf0b27717f00dbc66e
tree2f0c56173369af9f1043d6ae184f857b52ffc517
parent925c0375bf988039ca67aba783f2ad541281bbac
methods/ftp: Cope with weird PASV responses

wu-ftpd sends the response without parens, whereas we expect
them.

I did not test the patch, but it should work. I added another
return true if Pos is still npos after the second find to make
sure we don't add npos to the string.

Thanks: Lukasz Stelmach for the initial patch
Closes: #420940
methods/ftp.cc