]> 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>
Wed, 31 Aug 2016 11:12:58 +0000 (13:12 +0200)
commita55db465eca2c4d9f0cb6f36640ee6a70634052d
treebf9e70c1361986bf192aa3c3cb9bd6a682ff6518
parenta5859f6e046686bdbad22b5266e756030c157f60
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
(cherry picked from commit 25a694165ae46c159e0d91bf0b27717f00dbc66e)
methods/ftp.cc