Subject: Conversion Woes.

From: Christopher Vickery <[email-masked]>
Date: Thu, 25 Apr 1996 11:19:34 -0400 (EDT)

I have installed wu-ftpd 2.4 on a Solaris 2.5 system, with the
following anomaly:

      If a user tries "get somedir.tar.gz" where somedir is a directory
      and there is no file named somedir.tar or somedir.tar.gz, the
      server returns a file with the proper name, but it is identical
      to the file returned by "get somedir.tar".  That is, it does not
      gzip the tar file.  Same problem for somedir.tar.Z.  Since the
      command "get somefile.gz" works as expected, I know the problem
      is not with gzip.  I'm using the ftpconversions file from the
      distribution (.../doc/examples/ftpconversions).  It doesn't matter
      whether the user is real or anonymous.

Any help would be appreciated.
Chris
--
Dr. Christopher Vickery, Computer Science Department, Queens College of CUNY
65-30 Kissena Boulevard, Flushing, NY 11367-0904
(718) 997-3500 [voice]; (718) 997-3513 [fax]

Do you know about the League for Programming Freedom?
Contact http://www.lpf.org or [email-masked] for more information.

---

From: "W. James Showalter" <[email-masked]>
Date: Wed, 24 Apr 1996 14:23:38 -0400 (EDT)

Christopher,

Are you using GNU tar which has the compress function built in (i.e
knows which routine to call?

Also, are the compress routines in a directory which the environment
search path knows about and passes on to the ftpd.  I had a similar
problem and had to use the built in flag --use-compress-program <program>
where <program> was the full pathname because tar could not find it when
called from the ftpd. 

Also, I am running SunOS 4.1.4.

I hope this helps,
Jim

---

From: Christopher Vickery <[email-masked]>
Date: Thu, 25 Apr 1996 16:26:23 -0400 (EDT)

All --

	Many thanks to James Showalter for the answer to my conversion
	woes.  I picked up tar-1.11.8 from the Free Software
	Foundation, installed it in ~ftp/bin, copied missing shared
	library libmp.so* into ~ftp/usr/lib, changed the last three
	lines of /usr/local/etc/ftpconversions:

<  : : :.tar:/bin/tar -c -f - %s:T_REG|T_DIR:O_TAR:TAR
<  : : :.tar.Z:/bin/tar -c -Z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS
<  : : :.tar.gz:/bin/tar -c -z -f - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP
---
>  : : :.tar:/bin/tar cf - %s:T_REG|T_DIR:O_TAR:TAR
>  : : :.tar.Z:/bin/tar -cZf - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+COMPRESS
>  : : :.tar.gz:/bin/tar -czf - %s:T_REG|T_DIR:O_COMPRESS|O_TAR:TAR+GZIP

	(I think part of my problem, aside from not using GNU tar, was
	that I had taken the -Z and -z options off the tar commands in
	the ftpaccess file that I was working with.  The above diff is
	between the ftpaccess provided with wu-ftpd and the one I ended
	up with.)

	I also made a symbolic link from /usr/bin/tar to ~ftp/bin/tar,
	and,  Voila!

	Thanks again, James.
	Chris