pkgsrc-Users archive

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

NetBSD ftpd on-the-fly conversions incompatible with curl




To: pkgsrc-users%NETbsd.org@localhost

Subject: NetBSD ftpd on-the-fly conversions incompatible with curl

From: Daniel Feenberg <feenberg%nber.org@localhost>

Date: Thu, 20 Apr 2023 18:36:48 -0400 (EDT)



I have been using the NetBSD ftp
d server for some time specifically  because of the on-the-fly conversion capability. Usually that is for  gunziping files before transmission, but I have a more critical need - I  use it to process data for anonymous users.

How
ever, it seems that curl inquires about the size of the file before  "get"ing it, and ftpd replies "550 <filename> not a plain file" when a  file is subject to conversion, which is apparently treated as a fatal  error by curl, and curl does not attempt to "get" the file. Here is a  portion of the --verbose output from curl:

  > TYPE I
  < 200 Type set to I.
  > SIZE NBERStostad.txm35
  < 550 NBERStostad.txm35: not a plain file.
  * The file does not exist

According to this post (https:/
/curl.se/mail/lib-2004-10/0035.html), if  the SIZE command did not exist, curl would still work. It appears that  existing and providing a specific error message is the getting in the way.  I am not sure why curl bothers to issue the SIZE command when the  --max-filesize option is left unspecified. It seems unnecessary.

Is 
there any way around this? The conversion feature is the primary reason  for my using NetBSD.

Daniel Feenberg
http://taxsim.nber.org/


Follow-Ups:

Re: NetBSD ftpd on-the-fly conversions incompatible with curl
From: Greg Troxel




Prev by Date: Re: Upgrade all installed packages

Next by Date: Re: Upgrade all installed packages

Previous by Thread: ghostscript meta-pkg question

Next by Thread: Re: NetBSD ftpd on-the-fly conversions incompatible with curl

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index