Subject: Re: ftpd crashing when listing file with more than 23 chars (fwd)

From: Ian Willis <[email-masked]>
Date: Tue, 4 May 99 17:08:30 BST

Asher Frenkel wrote:

| I'm having problem with wu-ftpd VR17 on AIX 4.3.2, 
| 
| the ftpd process seem to crash whenever I'm listing a file with a name
| bigger then 23 chars, as illustrated by the following:

This looks like the problem where restrict_list_check() walks off the
end off the name, try the patch below.

Ian Willis
SCO Internet Engineering Group, Watford, England

*** restrict.c.00	Thu Mar  4 06:45:59 1999
--- restrict.c	Wed Apr 28 16:45:55 1999
***************
*** 112,118 ****
  	if (restrict_check (copy)) return 1;
  	free (copy);
  	beg = end;
! 	++beg;
  
      } /* while */
  
--- 112,118 ----
  	if (restrict_check (copy)) return 1;
  	free (copy);
  	beg = end;
! 	if (!flag) ++beg;
  
      } /* while */

---

From: Asher Frenkel <[email-masked]>
Date: Wed, 5 May 1999 11:18:32 +0300 (IDT)

> end off the name, try the patch below.

thanks, the patch fixed it. 

--Asher