Subject: Re: Working ftpd + Linux? (Solved!)

From: Vincent Cojot <[email-masked]>
Date: Sat, 7 Oct 1995 10:19:32 -0400 (EDT)

Hi everyone,

I fixed by myself my problem with the problems I had to get ftpd to work 
correctly under Linux but I don't know if I did well. Here is what I did:

palanthas:/usr/installed/wu-ftpd-2.4.2-beta-5/src$ diff ftpd.c 
ftpd.c.orig 
1413c1413
<             if (S_ISREG(st.st_mode) != 0 && S_ISDIR(st.st_mode) != 0) {
---
>             if (S_ISREG(st.st_mode) != 0 && S_ISDIR(st.st_mode) == 0) {
1417c1417
<             if ((cptr->types & T_ASCII) != 0 && deny_badasciixfer(550, ""))
---
>             if ((cptr->types & T_ASCII) == 0 && deny_badasciixfer(550, ""))

Since I am no great C programmer (yet!:) ), I don't know if those changes 
are valid or could cause problems... Below is the mail I sent which had 
the description of the problem in it. I am using wu-ftpd-2.4.2-beta-5 
from academ but wu-ftpd-2.4.2-beta-4 showed the same kind of problems 
under linux (it worked fine under Solaris 2.4).

Vincent

On Sat, 30 Sep 1995, Vincent Cojot wrote:

> 
> Hi everyone,
> 
> I am sorry if this has been asked before but I still need a little help 
> working with wu-ftpd under Linux. Everything compiles fine, runs fine, 
> transfers fine, anonymous and real users are happy, except for this:
> 
> I can 'get' 'dir.tgz' or 'dir.tar.gz' fine but when I try:
> 
> 'get file.gz', I get: cannot GZIP plain files.
> 
> 'get file.Z', I get: cannot COMPRESS plain files.
> 
> It happens for anonymous, real and root users...
> 
> If anyone has an idea to help this to working, I would really apreciate 
> it. Thank you very much for reading this.
> 
> (I tried several 1.2.x kernels and 1.3.25-29 kernels..and it still does 
> not work..)
> 
> Vincent
> _________________________________________________________________________
> Vincent S. Cojot, Computer Engineering.
> Ecole Polytechnique de Montreal, Comite Micro-Informatique.
> [email-masked], [email-masked]