Subject: Re: Sysinst ftp ignores leading / when ftp'ing binaries
To: Simon Burge <simonb@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-install
Date: 05/04/1999 22:19:56
>> In order to save bandwidth/time for building multiple machines, I ftp'd the
>> binaries for 1.4 Beta to my local unix machine. Then I ran sysinst to build
>> a new machine, and gave it my unix machine name, the path
>> (/usr/archive/NetBSD-1.4), and my username and password. Unfortunately,
>> sysinst ran a command similar to 'ftp
>> ftp://mike:secret@host.local.com/usr/archive/NetBSD-1.4/ ' which did not
>> work because the ftp program used a path relative to my home directory
>> instead of /.
>
>This was mentioned on one of the other lists recently. I
>_think_ you need to put an escaped '/' at the start. Try
>"%2Fusr/archive/NetBSD-1.4" instead...
i remember this, but imho, these are both wrong. if you really mean
relative to your home directory, you should use
ftp://hostname/~user/path/to/file...
so that
ftp://hostname/home/user/path/to/file...
goes to the right place. then the only "special case" that ftp should
have to deal with is the case where the path it should be retrieving
if the one where it starts /~ as above. otherwise, two people can
argue back and forth forever on whether or not it should proceed from
the root directory forever.
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
andrew@crossbar.com * "information is power -- share the wealth."