Mail Archives: cygwin/2001/11/06/08:11:35
--------------A49F5480B5F3AC382381CCCA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Btw what is done in state.cc is a bad habbit, IMO.
I would suggest the following simple changes to be
done ...
There is no changelog since i'm not sure if this
will be approved and also I'm not sure what
defaults should be assigned to the root_* set
of variables.
Pavel Tsekov wrote:
>
> Robert Collins wrote:
> >
> > On Tue, 2001-11-06 at 21:32, Gareth Pearce wrote:
> > > Hi,
> > ...
> >
> > > get_url_to_string ftp://planetmirror.com/pub/sourceware/cygwin/setup.ini
> > > ftp > x
> > > ftp > x
> > > ftp > x
> > > repeat the ftp line semi-ad-infinitum.
> >
> > Thanks Gareth, this does look like a fault in the ftp state machine.
> > I'll investigate..
>
> Rob there is something suspicious here. The net_ftp_user and the
> net_ftp_passwd
> pointers are never zeroed before get_ftp_auth() is called ... so if
> there is
> garbage in the pointers setup will try to auth against these instead of
> USER anonymous.
>
> My 2 cents :)
--------------A49F5480B5F3AC382381CCCA
Content-Type: text/plain; charset=us-ascii;
name="state.cc"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="state.cc"
/*
* Copyright (c) 2000, Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* A copy of the GNU General Public License can be found at
* http://www.gnu.org/
*
* Written by DJ Delorie <dj AT cygnus DOT com>
*
*/
/* All we do here is instantiate the extern'd variables from state.h */
static char *cvsid = "\n%%% $Id: state.cc,v 2.0 2000/08/08 00:59:08 dj Exp $\n";
#include "state.h"
#inlcude "resource.h"
int source = IDC_SOURCE_NETINST;
char * local_dir = NULL;
int root_text;
int root_scope;
int root_menu;
int root_desktop;
int net_method = IDC_NET_DIRECT;
char * net_proxy_host = NULL;
int net_proxy_port = 80;
char * net_user = NULL;
char * net_passwd = NULL;
char * net_proxy_user = NULL;
char * net_proxy_passwd = NULL;
char * net_ftp_user = NULL;
char * net_ftp_passwd = NULL;
char * mirror_site = NULL;
char * other_url = NULL;
int trust_level = 0; // This variable is not used anywhere atm.
--------------A49F5480B5F3AC382381CCCA
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--------------A49F5480B5F3AC382381CCCA--
- Raw text -