[arachne] Re: arachne ftp

Arachne at FreeLists---The Arachne Fan Club!

On Sun, 02 Mar 2008 09:24:51 -0600, "Destiny" <destiny2b@xxxxxxxxxxxxxxx> wrote:

> ftp://ftp.wisdomtree.info/trunk/

> The point of this is everything else can read the
> above link and for that matter /trunk/dos and /trunk.
> What prevents Arachne?

As-if you did not already _know_ this ;-) ......

The problem _was_ in Arachne.

It is now fixed. :))

http://cisnet.com/glennmcc/ftp-fix.gif

The v1.93 package is now updated to include this fix.

http://cisnet.com/glennmcc/a193gpl/

If you already have the v1.93 package installed and would simply
like to update to this fix.....

http://cisnet.com/glennmcc/a193gpl/ftp-fix.zip

For those who might be curious as to how easy this problem was to fix...
it involved nothing more than moving one '}' to a different spot.

--- FTP_C in the SRCs for core.exe ----

<snip>

//!!glennmcc: May 11, 2005
//some sites do not require a password after 'anonymous'
//therefer, this entire block is now within this 'if()' so that
//the password (email address), will only be sent if asked for
//!!glennmcc: Nov 13, 2007 -- EZNOS2 says "Enter PASS command"
if (strstr(buffer,"sword") || strstr(buffer,"Enter PASS command"))
//if (strstr(buffer,"sword"))//original line
{
 sprintf( str, "PASS %s", ptr);
 sock_puts(socket,(unsigned char *)str);
}//!!glennmcc: inserted Mar 02, 2008
//Some servers need the following 'do/while' section,
//therfore, only the section above for sending the password needs to be
//'blocked' when no password was requested.

 do
 {
  sock_wait_input( socket, sock_delay, (sockfunct_t) TcpIdleFunc,
         &status );//SDL
  sock_gets( socket, (unsigned char *)buffer, sizeof( buffer ));
  outs(buffer);
//  printf("FTP daemon said>");
//  puts(buffer);
  if ( *buffer != '2' && buffer[0]!=' ')
  {
   write(cache->handle,buffer,strlen(buffer));
   rv=1;
   goto quit;
  }
  else if ((buffer[3]=='-' || buffer[0]==' ') && (isdir || uploadfile))
  {
   strcat(buffer,"\r\n");
   rv=1;
   write(cache->handle,buffer,strlen(buffer));
  }
 }
 while(buffer[3]=='-' || buffer[0]==' '); //continued message!
//}//!!glennmcc: end May 11, 2005 -- removed on Mar 02, 2008

<snip>
__________________________________________________________________________

--
 Glenn
 http://www.delorie.com/listserv/mime/
 http://www.cisnet.com/glennmcc/
 http://www.law.cornell.edu/constitution/constitution.table.html
                  Arachne at FreeLists                  
-- Arachne, The Premier GPL Web Browser/Suite for DOS --

Other related posts: