*BSD News Article 55273


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!wang!uunet!in2.uu.net!news.greatis.com!usenet
From: Val Kulkov <val@greatis.com>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: General FTP extensions do not work in v.2.0.1
Date: 16 Nov 1995 17:48:10 GMT
Organization: GREATIS USA, Inc.
Lines: 36
Message-ID: <48ftgq$dp3@elf.greatis.com>
NNTP-Posting-Host: wolf.greatis.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; I; 32bit)

Hello everybody,

The 2.0.1 distribution ftpd is supposed to understand .tar.gz and .tar.Z extensions as 
described in 'man ftpd'. That is, if you are entering

> get dirname.tar.gz

as an ftp client, the whole content of 'dirname' should be tarred and gzipped and sent 
to you as dirname.tar.gz. Convenient, huh?

PROBLEM: All .tar.gz and .tar.Z files come in zero-length.

POSSIBLE REASON: The correspondent entries in /etc/ftpconversions file are 
misinterpreted by ftpd, i.e. pipes are considered as parameter delimiters, not as 
redirection pipes:

*** Start Quote /etc/ftpconversions ***
 : : :.tar.gz:/bin/pax -w %s |/bin/gzip -c:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+
COMPRESS
 : : :.tar.Z:/bin/pax -w %s | /bin/compress -c:T_REG|T_DIR:O_COMPRESS|O_TAR:T
AR+COMPRESS
*** End Quote /etc/ftpconversions ***

I tried to escape the pipe symbol as "\|" as well as to enclose in double quotes the 
whole field. With no success. Then, I had an idea of calling some script to do that 
task, but that would have involved a presence of some user shell in /bin directory under 
ftp hierarchy, and I wouldn't like to do it for security reasons.


Any bright ideas?


Respectfully,
Val