[Toybox] ftpget - Fixes and minor new features.

Eric Molitor emolitor at molitor.org
Sun Nov 7 10:46:06 PST 2021


Aye, the backside of FTP can't come soon enough. Even sftp, basically FTP
protocol over SSH, needs to die.

- Eric

On Sat, 6 Nov 2021, 11:29 pm Rob Landley, <rob at landley.net> wrote:

> On 11/5/21 11:54 PM, Rob Landley wrote:
> > On 11/2/21 2:00 PM, Eric Molitor wrote:
> >> Attention should be paid to the change to portability.h. I believe this
> is the
> >> correct way to expose memrchr for glibc. I've tested it and it works
> with glibc
> >> but I primarily use MUSL.
> >
> > I'm uncomfortable trying to guess which combinations of const and
> restrict a
> > nonstandard header prototype is going to have from version to version and
> > library to library.
>
> Finally taking a proper look at this (these commands were an external
> submission
> I did the minimal cleanup pass to get it out of pending and haven't looked
> at
> since), and I am once again reminded that yes, FTP is an insane protocol. I
> thought PASV did in-band file transfer in the  existing connection, but no
> it
> just means client dials a SECOND connection to a known port on the target,
> which
> yes requiresd Pauline Middelink's IP masquerading invention to parse the
> protocol to masquerade it:
>
>   https://www.linuxjournal.com/article/5047
>
> Which is why encrypted FTP never took off: because the masquerading module
> can't
> intercept and parse the protocol and add the temporary rule that this IP is
> allowed to open one connection to this port, presumably timing out
> eventually if
> they don't for long enough...
>
> What a mess.
>
> Rob
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20211107/2c911705/attachment-0001.htm>


More information about the Toybox mailing list