torsdag den 12 maj 2011 klockan 17:24 skrev Johannes Schmidt-Fischer detta:
> Hello Mats,
>
> when I start the FTP client and connect to the FTP proxy I have no chance
> to specify the FTP server I want to connect to prior to getting the input
> prompt from the FTP client and entering the "user" command with the
> appropriate informations.
I had a transparent ftp-proxy in mind.
An open invitation is now made to all interested participants
to build the client executable using the attached little patch.
Do test it in all the use-cases you encounter, and preferrably
some more! Not all servers react identically to a SYST command
issued before a successful USER command.
I can not guarantee that this suggestion will go into production,
but for evaluation purposes I need to know that nothing is broken,
while at the same time attempting to close this bug in a transparent
way for all use-cases we have identified.
Respond to this BTS thread, not to any personal address, as I am
subscribed to this thread, or rather to the package observer!
Thank you in advance for your reports and efforts.
Description: Use implicit SYST only with auto-login.
Not every server, nor every ftp-proxy server, is able
to reply to a SYST command, unless the user is logged in.
.
Couple dosyst() to dologin() to avoid an otherwise
disturbing SYST poll.
Author: Mats Erik Andersson
Forwarded: not-needed
Last-Update: 2011-05-23
--- netkit-ftp-0.17/ftp/cmds.c.debian 2011-05-23 21:53:29.000000000 +0200
+++ netkit-ftp-0.17/ftp/cmds.c 2011-05-23 22:00:36.000000000 +0200
@@ -243,9 +243,10 @@
(void) strcpy(modename, "stream"), mode = MODE_S;
(void) strcpy(structname, "file"), stru = STRU_F;
(void) strcpy(bytename, "8"), bytesize = 8;
- if (autologin)
+ if (autologin) {
(void) dologin(argv[1]);
- dosyst();
+ dosyst();
+ }
}
}