|
|
@@ -0,0 +1,13 @@
|
|
|
+Index: lib/ftp.c
|
|
|
+--- lib/ftp.c.orig 2007-07-02 00:01:19 +0200
|
|
|
++++ lib/ftp.c 2007-07-20 09:20:11 +0200
|
|
|
+@@ -2371,8 +2371,7 @@
|
|
|
+ struct ftp_conn *ftpc = &conn->proto.ftpc;
|
|
|
+ (void)instate; /* no use for this yet */
|
|
|
+
|
|
|
+- /* some need password anyway, and others just return 2xx ignored */
|
|
|
+- if((ftpcode == 331 || ftpcode/100 == 2) && (ftpc->state == FTP_USER)) {
|
|
|
++ if((ftpcode == 331) && (ftpc->state == FTP_USER)) {
|
|
|
+ /* 331 Password required for ...
|
|
|
+ (the server requires to send the user's password too) */
|
|
|
+ NBFTPSENDF(conn, "PASS %s", ftp->passwd?ftp->passwd:"");
|