pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

FTPBUFLEN issue on 2024/02/18 change (Re: github & FETCH_USING



(probably already explained, sorry)

The problem
    thinkc-01@makoto 01:08:16/261203(..devel/cargo-c)% /usr/bin/ftp http://github.com/lu-zero/cargo-c/archive/v0.10.28.tar.gz
    ...
    ftp: Receiving HTTP reply: Input line is too long

found following for example,
   http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20261127.0344/cargo-c-0.10.28/checksum.log

is related to (or fixed by)
Two changes made on 2.5 years before,
  * 0ffeff50809a [2024-02-18 22:33:15 +0000] ftp: bump FTPBUFLEN from 4kB to 16kB @wiz
  * 731add73db7a [2024-02-18 22:29:56 +0000] Add -b <buflen> to specify the buffer size. @christos


I've changed only one line for netbsd-9 branch, and replace usr.bin/ftp
binary on pbulk host.

usr.bin/ftp/ftp_var.h

@@ -165,12 +165,13 @@ enum {
        FEAT_max
 };

-
 /*
  * Global defines
  */
-#define        FTPBUFLEN       (4 * MAXPATHLEN)
+#define        FTPBUFLEN       (16 * 1024)
 *

Special thanks to Atsushi Toyokura, who gave me the instruction above.
-- 
Makoto Fujiwara
mef%NetBSD.org@localhost
makoto%if.t.u-tokyo.ac.jp@localhost


Home | Main Index | Thread Index | Old Index