To: Gary Anderson <ganderson@net.clark>
Subject: Re: ftpd-diku question (Here's the problem area) 
In-reply-to: Your message of "Sat, 19 Mar 1994 20:06:06 EST."
             <Pine.3.89.9403191911.A1310-0100000@ganderson_ppp.clark.net> 
From: Mitchum DSouza <m.dsouza@mrc-apu.cam.ac.uk>
X-Address: MRC-Applied Psychology Unit, 15 Chaucer Road, Cambridge, CB2 2EF, England, UK.
X-Phone: (0223) 355294 EXT 510
X-Operating-System: Linux linux 0.99.15c #4 Mon Feb 14 18:19:32 1994 i386
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
--------
> 
> Just isolated the problem, but don't have a fix for it.
> 
> > The problem with the ftpd-diku password length seems to apply only to 
> > 'anonymous' logins.  FTP logins to names which are valid usernames on 
> > my machine accepts passwords properly.  If I try an FTP login to my 
> > machine using 'anonymous', ftpd-diku doesn't accept a password over 7 
> > characters in length.  Most e-mail address passwords would exceed 
> > this. Shoot, even me@me.fi breaks the limit.
> >
> > Gary
> > ganderson@clark.net
> 
> 
> It looks like the %F function in ftpd-diku is the culprit.  I had this 
> function in my welcome.msg file.  When this calls statfs(), I get a
> [SIGSEGV].  Once I took the %F out of the welcome.msg file, all was right 
> with the world, and diku accepted longer-than-7-character passwords for 
> anonymous users.

As you probably guessed I am reading my messages sequentially after my weekend
away. Anyway I am glad you fixed the problem.

Thanx for the report. The fact is that I wrote the %F routine and made a big
time f**k up. Can you please tell me if the following works (i.e. put back the
%F in the welcome.msg after you apply this)

In the free.c file change the line

        buf=malloc(sizeof(struct statfs *));
to
        buf=malloc(sizeof(struct statfs));

and recomplie.

Please get back to me as I will re relase a new version with the netinet stuff
taken out too.

Thanx
Mitch