Subject: Re: sysinst ftp fetch problems.
To: Simon Burge <simonb@telstra.com.au>
From: Simon Burge <simonb@telstra.com.au>
List: tech-install
Date: 04/07/1999 21:14:15
[[ _eight_ hours to get from my desk to the US and back.  Oh well :-) ]]

Simon Burge wrote:

> Quick question before I duck out for lunch...
> 
> Both myself and Matthew Hudson are having problems with sysinst fetching
> sets via ftp - me on our intranet FTP server and Matt directly from
> ftp.netbsd.org.  For me it works from the command line, but not from
> within sysinst:
>
> [[ cmd-line ftp deleted ]]
> 
> Sysinst:     
>              Status: Failed
>             Command: /usr/bin/ftp -a 'ftp://ftp.cpr.telecom.com.au/pub/simonb/kern.tgz'
>              Press any key to continue
>          ------------------------------------------------------------------------------ 
>         | ftp: 'ftp: Unknown host                                                      |
>         | ftp: Can't connect or login to host `'ftp'                                   |
>         |                                                                              |
>          ------------------------------------------------------------------------------
> 
> Any helpful respones before I get back from lunch will be muchly
> appreciated :-)

I've since found and fixed the problem.  sysinst is putting single quotes
around the FTP URL to protect it from the shell.  Only problem is that
it's executed via execvp() and not system()...

Simon.