summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1998-05-09 07:33:09 +0000
committerfenner <fenner@FreeBSD.org>1998-05-09 07:33:09 +0000
commit014829c6bf63bba6e9b1f30a34961848280f50e4 (patch)
tree35d82b9cb89d86206bfc6b67d45d9ecba4195d44 /usr.bin/fetch
parentbabe8d397644ca48fbacb059c22dd5ea2edd1d3e (diff)
downloadFreeBSD-src-014829c6bf63bba6e9b1f30a34961848280f50e4.zip
FreeBSD-src-014829c6bf63bba6e9b1f30a34961848280f50e4.tar.gz
Describe absolute paths in FTP URL's. This patch has been sitting
around uncommitted for 2 months =(
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/fetch.119
1 files changed, 16 insertions, 3 deletions
diff --git a/usr.bin/fetch/fetch.1 b/usr.bin/fetch/fetch.1
index 0e57350..ee25412 100644
--- a/usr.bin/fetch/fetch.1
+++ b/usr.bin/fetch/fetch.1
@@ -1,4 +1,4 @@
-.\" $Id: fetch.1,v 1.19 1997/08/05 20:18:37 ache Exp $
+.\" $Id: fetch.1,v 1.20 1998/03/23 07:43:02 charnier Exp $
.Dd July 2, 1996
.Dt FETCH 1
.Os FreeBSD 2.2
@@ -29,12 +29,12 @@ protocol. In the first form of the command, the
may be of the form
.Li http://site.domain/path/to/the/file
or
-.Li ftp://site.domain/path/to/the/file.
+.Li ftp://site.domain/path/to/the/file .
To denote a local filename to be copied or linked to (see the
.Fl l
flag below), the
.Em file:/path/to/the/file
-URL form is used.
+URL form is used. See URL SYNTAX, below.
.Pp
The second form of the command can be used to get a file using the
.Tn FTP
@@ -119,6 +119,19 @@ result in more information.
.Pp
Many options are also controlled solely by the environment (this is a
bug).
+.Sh URL SYNTAX
+.Nm
+accepts
+.Tn http
+and
+.Tn ftp
+URL's, as described in RFC1738. For
+.Tn ftp
+URL's, a username and password may be specified, using the syntax
+.Li ftp://user:password@host/.
+If the path is to be absolute, as opposed to relative to the user's
+home directory, it must start with %2F, as in
+.Li ftp://root:mypass@localhost/%2Fetc/passwd .
.Sh PROXY SERVERS
Many sites use application gateways (``proxy servers'') in their
firewalls in order to allow communication across the firewall using a
OpenPOWER on IntegriCloud