Up to [local] / src / usr.bin / ftp
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.146 / (download) - annotate - [select for diffs], Sat Dec 23 23:03:00 2023 UTC (5 months, 2 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE,
OPENBSD_7_5,
HEAD
Changes since 1.145: +2 -2 lines
Diff to previous 1.145 (colored) to selected 1.33 (colored)
Relax -C pledge to unbreak shelling out in interactive mode r1.69 introduced -C in 2008 "to continue multiple transfers"; 'ftp -C ftp://ftp.eu.openbsd.org/' lands in "ftp> " and turns "mget" into "reget" by default. r1.139 -C/resume without "proc exec" thusly was too strict. Instead, now after recent cleanups/tweaks, prevent execution with -o. OK millert
Revision 1.145 / (download) - annotate - [select for diffs], Fri Dec 15 10:28:57 2023 UTC (5 months, 3 weeks ago) by kn
Branch: MAIN
Changes since 1.144: +3 -2 lines
Diff to previous 1.144 (colored) to selected 1.33 (colored)
No interactive shell if -o is given After r1.140 and r1.144 fixed -o '' and clenaed up option handling, respectively, avoid the "ftp> " shell if any output file was specified. OK millert
Revision 1.144 / (download) - annotate - [select for diffs], Tue Dec 12 22:00:43 2023 UTC (5 months, 4 weeks ago) by kn
Branch: MAIN
Changes since 1.143: +3 -9 lines
Diff to previous 1.143 (colored) to selected 1.33 (colored)
Make -o less special, drop -o '' support, always use last value ftp(1) says -o is about a single file/URL, but option handling takes the empty string as "reset previous -o value", which makes little sense, is undocumented and counter-intuitively works as if no -o was specified. OK millert
Revision 1.143 / (download) - annotate - [select for diffs], Thu Nov 30 14:52:00 2023 UTC (6 months, 1 week ago) by kn
Branch: MAIN
Changes since 1.142: +2 -2 lines
Diff to previous 1.142 (colored) to selected 1.33 (colored)
Single file to stdout without "fattr" Regardless of SMALL and other command flags, 'ftp -o - URL [file|URL ...]' only processes the first URL and exists. Only standard output is written to and modifying 'struct stat' properties as per pledge(2) "fattr" don't apply. OK millert
Revision 1.142 / (download) - annotate - [select for diffs], Thu Nov 30 14:51:32 2023 UTC (6 months, 1 week ago) by kn
Branch: MAIN
Changes since 1.141: +1 -8 lines
Diff to previous 1.141 (colored) to selected 1.33 (colored)
Fold identical pledge cases, '#ifndef SMALL \n if (!resume)' equals 'else' OK millert
Revision 1.141 / (download) - annotate - [select for diffs], Wed Nov 22 02:20:54 2023 UTC (6 months, 2 weeks ago) by kn
Branch: MAIN
Changes since 1.140: +2 -2 lines
Diff to previous 1.140 (colored) to selected 1.33 (colored)
Piping single file to standard out needs no "proc exec" '-o -' now means no "ftp> " shell, so no "|some cmd" files, "!some cmd" or "page" commands. OK millert
Revision 1.140 / (download) - annotate - [select for diffs], Wed Nov 22 02:16:20 2023 UTC (6 months, 2 weeks ago) by kn
Branch: MAIN
Changes since 1.139: +2 -2 lines
Diff to previous 1.139 (colored) to selected 1.33 (colored)
Do not drop into "ftp> " shell when piping to stdandard output '-o -' is orthogonal to an interactive prompt, yet some (malformed) URLs such as ftp://host/ would still end up there; exit after processing the first file/URL to prevent this. sthen deraadt agree OK millert
Revision 1.139 / (download) - annotate - [select for diffs], Thu Nov 9 18:18:59 2023 UTC (7 months ago) by kn
Branch: MAIN
Changes since 1.138: +7 -5 lines
Diff to previous 1.138 (colored) to selected 1.33 (colored)
-C/resume without "proc exec" ftp(1) has "proc exec" to run sh(1) on interactive ! commands and filenames starting with "|"; this is orthogonal to continuing transfers using the existing file size as offsets. There seems to be no case where a) the argument is an URL, i.e. we pledge, and b) a shell is spawned somehow, so avoid these promises when resuming. bsd.port.mk(5) FETCH_CMD uses -C by default. OK millert
Revision 1.138 / (download) - annotate - [select for diffs], Wed Jul 14 13:33:57 2021 UTC (2 years, 10 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_4_BASE,
OPENBSD_7_4,
OPENBSD_7_3_BASE,
OPENBSD_7_3,
OPENBSD_7_2_BASE,
OPENBSD_7_2,
OPENBSD_7_1_BASE,
OPENBSD_7_1,
OPENBSD_7_0_BASE,
OPENBSD_7_0
Changes since 1.137: +1 -3 lines
Diff to previous 1.137 (colored) to selected 1.33 (colored)
Remove unneeded calls to tls_init(3) As per the manual and lib/libtls/tls.c revision 1.79 from 2018 "Automatically handle library initialisation for libtls." initialisation is handled automatically by other tls_*(3) functions. Remove explicit tls_init() calls from base to not give the impression of it being needed. Feedback tb OK Tests mestre
Revision 1.137 / (download) - annotate - [select for diffs], Tue Feb 2 21:41:12 2021 UTC (3 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE,
OPENBSD_6_9
Changes since 1.136: +2 -2 lines
Diff to previous 1.136 (colored) to selected 1.33 (colored)
add -Tu to usage();
Revision 1.136 / (download) - annotate - [select for diffs], Tue Feb 2 12:58:42 2021 UTC (3 years, 4 months ago) by robert
Branch: MAIN
Changes since 1.135: +17 -2 lines
Diff to previous 1.135 (colored) to selected 1.33 (colored)
introduce support for sending the If-Modified-Since header while fetching over http(s) and use the timestamps from the remote server's Last-Modified header if available when saving local files this makes it possible to mirror files better with ftp(1) the new timestamp behaviour can be disabled with the new '-u' flag ok sthen@, input from sthen@ and gnezdo@
Revision 1.135 / (download) - annotate - [select for diffs], Sun Sep 6 09:49:11 2020 UTC (3 years, 9 months ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE,
OPENBSD_6_8
Changes since 1.134: +3 -2 lines
Diff to previous 1.134 (colored) to selected 1.33 (colored)
On tls_config_set_protocols() failure, include the output of tls_config_error() in the errx() message. discussed with jsing
Revision 1.134 / (download) - annotate - [select for diffs], Sun Sep 6 09:03:13 2020 UTC (3 years, 9 months ago) by tb
Branch: MAIN
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored) to selected 1.33 (colored)
Use an int for the verification depth and drop a cast. from jca
Revision 1.133 / (download) - annotate - [select for diffs], Sun Sep 6 09:00:37 2020 UTC (3 years, 9 months ago) by tb
Branch: MAIN
Changes since 1.132: +12 -1 lines
Diff to previous 1.132 (colored) to selected 1.33 (colored)
Allow specifying supported TLS protocols in ftp(1) This adds the possibility of specifying the TLS protocols for ftp(1) to use via -S "protocols=tlsv1.2:tlsv1.1" or -S "protocols=all" or simlar options. This works the same way as nc(1)'s -T protocols option using tls_config_{parse,set}_protocols(3) internally. ok jca
Revision 1.132 / (download) - annotate - [select for diffs], Tue Sep 1 12:33:48 2020 UTC (3 years, 9 months ago) by jca
Branch: MAIN
Changes since 1.131: +107 -1 lines
Diff to previous 1.131 (colored) to selected 1.33 (colored)
Fix build with -fno-common (default in clang 11) Input and ok mortimer@
Revision 1.131 / (download) - annotate - [select for diffs], Tue Feb 11 18:41:39 2020 UTC (4 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE,
OPENBSD_6_7
Changes since 1.130: +6 -6 lines
Diff to previous 1.130 (colored) to selected 1.33 (colored)
Simplify and unify wording for the -I sourceaddr option in various places. This is somewhat related to the "-b bind_addr" option some programs have, which should get some cleanup also... input florian claudio jmc
Revision 1.130 / (download) - annotate - [select for diffs], Wed Oct 23 16:48:59 2019 UTC (4 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.129: +14 -11 lines
Diff to previous 1.129 (colored) to selected 1.33 (colored)
Add new -N name option, so that calling scripts can change the progname and produce better error messages discussed with aja and jca
Revision 1.129 / (download) - annotate - [select for diffs], Thu May 16 12:44:18 2019 UTC (5 years ago) by florian
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE,
OPENBSD_6_6
Changes since 1.128: +858 -313 lines
Diff to previous 1.128 (colored) to selected 1.33 (colored)
Revert suni'ls ftp rewrite for now. We are juggling too many things at the moment and we can't deal with the differences in behaviour right now.
Revision 1.128 / (download) - annotate - [select for diffs], Wed May 15 13:42:40 2019 UTC (5 years ago) by florian
Branch: MAIN
Changes since 1.127: +4 -2 lines
Diff to previous 1.127 (colored) to selected 1.33 (colored)
Display "bytes received" like the csrg ftp used to when the progressbar is disabled. Difference pointed out by deraadt OK kurtm, sunil
Revision 1.127 / (download) - annotate - [select for diffs], Wed May 15 11:53:22 2019 UTC (5 years ago) by kmos
Branch: MAIN
Changes since 1.126: +5 -4 lines
Diff to previous 1.126 (colored) to selected 1.33 (colored)
Add the -m flag to the ftp.1 man page. Adjust the usage message of ftp(1) to reflect its two operating modes and list missing flags. OK florian@ jmc@
Revision 1.126 / (download) - annotate - [select for diffs], Tue May 14 18:25:31 2019 UTC (5 years ago) by florian
Branch: MAIN
Changes since 1.125: +4 -2 lines
Diff to previous 1.125 (colored) to selected 1.33 (colored)
-v forces verbose mode even if stdin is not a terminal Found the hard way by bluhm Debugged with deraadt & bluhm
Revision 1.125 / (download) - annotate - [select for diffs], Tue May 14 02:32:08 2019 UTC (5 years ago) by sunil
Branch: MAIN
Changes since 1.124: +1 -2 lines
Diff to previous 1.124 (colored) to selected 1.33 (colored)
Remove an unused and leftover label.
Revision 1.124 / (download) - annotate - [select for diffs], Sun May 12 21:49:52 2019 UTC (5 years, 1 month ago) by espie
Branch: MAIN
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored) to selected 1.33 (colored)
zap confusing unneeded parameters okay jca@, jasper@
Revision 1.123 / (download) - annotate - [select for diffs], Sun May 12 21:30:48 2019 UTC (5 years, 1 month ago) by jca
Branch: MAIN
Changes since 1.122: +3 -2 lines
Diff to previous 1.122 (colored) to selected 1.33 (colored)
Repair ftp -o - and thus pkg_add: print informational messages on stderr ok florian@ espie@
Revision 1.122 / (download) - annotate - [select for diffs], Sun May 12 20:58:19 2019 UTC (5 years, 1 month ago) by jasper
Branch: MAIN
Changes since 1.121: +2 -0 lines
Diff to previous 1.121 (colored) to selected 1.33 (colored)
add rcs ids
Revision 1.121 / (download) - annotate - [select for diffs], Sun May 12 20:44:39 2019 UTC (5 years, 1 month ago) by kmos
Branch: MAIN
Changes since 1.120: +301 -853 lines
Diff to previous 1.120 (colored) to selected 1.33 (colored)
Move us from old ftp(1) to Sunil's new ftp(1). The necessary modifications have been made to make it behave. Any new misbehaviors can be fixed in tree. OK florian@ deraadt@ "Have you committed ftp yet?"
Revision 1.120 / (download) - annotate - [select for diffs], Sat Feb 10 06:25:16 2018 UTC (6 years, 4 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4,
OPENBSD_6_3_BASE,
OPENBSD_6_3
Changes since 1.119: +25 -9 lines
Diff to previous 1.119 (colored) to selected 1.33 (colored)
Add TLS session support to ftp(1). If a session file is specified via the `-S session=...', ftp(1) will attempt to resume TLS sessions based on the session data contained within this file. Upon completion of a successful TLS handshake the session file will be updated with new session data, if available. Discussed with deraadt@ and beck@. Requested by and input from espie@.
Revision 1.119 / (download) - annotate - [select for diffs], Tue Jan 24 23:47:34 2017 UTC (7 years, 4 months ago) by beck
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE,
OPENBSD_6_2,
OPENBSD_6_1_BASE,
OPENBSD_6_1
Changes since 1.118: +6 -1 lines
Diff to previous 1.118 (colored) to selected 1.33 (colored)
Add -S noverifytime to ftp to permit an unvalidated TLS connection when you don't knwo what time it is
Revision 1.118 / (download) - annotate - [select for diffs], Sat Jan 21 08:33:07 2017 UTC (7 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.117: +6 -6 lines
Diff to previous 1.117 (colored) to selected 1.33 (colored)
Nuke whitespace foolish enough to expose itself during the great "warning:" rectification.
Revision 1.117 / (download) - annotate - [select for diffs], Fri Jan 20 04:03:53 2017 UTC (7 years, 4 months ago) by krw
Branch: MAIN
Changes since 1.116: +2 -2 lines
Diff to previous 1.116 (colored) to selected 1.33 (colored)
Straggling __dead. Mark usage() as __dead and make gcc happier.
Revision 1.116 / (download) - annotate - [select for diffs], Tue Jan 3 17:00:04 2017 UTC (7 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.115: +14 -6 lines
Diff to previous 1.115 (colored) to selected 1.33 (colored)
Add a "-w connect_timeout" option in support of URL-fetching. This allows slow / failing connects to be identified. The install script needs this functionaly. ok jca rpe millert
Revision 1.115 / (download) - annotate - [select for diffs], Wed Dec 28 17:48:04 2016 UTC (7 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.114: +28 -21 lines
Diff to previous 1.114 (colored) to selected 1.33 (colored)
Split -DSMALL into -DNOSSL, so that a SSL-enabled version of ftp can be built, which is still pretty small (in distrib/special/ftp-ssl). Lots of testing by rpe.
Revision 1.114 / (download) - annotate - [select for diffs], Thu Dec 22 16:30:03 2016 UTC (7 years, 5 months ago) by beck
Branch: MAIN
Changes since 1.113: +6 -1 lines
Diff to previous 1.113 (colored) to selected 1.33 (colored)
add muststaple option so that oscp stapling can be required for sites you expect to provide it. ok jsing@
Revision 1.113 / (download) - annotate - [select for diffs], Fri Dec 16 17:44:59 2016 UTC (7 years, 5 months ago) by krw
Branch: MAIN
Changes since 1.112: +5 -2 lines
Diff to previous 1.112 (colored) to selected 1.33 (colored)
Eliminate some gcc warnings about 'unused variables', mostly by adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately)
Revision 1.112 / (download) - annotate - [select for diffs], Wed Nov 30 07:55:24 2016 UTC (7 years, 6 months ago) by mestre
Branch: MAIN
Changes since 1.111: +5 -2 lines
Diff to previous 1.111 (colored) to selected 1.33 (colored)
Check return value of tls_config_set_protocols(3) and bail out in case of failure Feedback and OK jsing@
Revision 1.111 / (download) - annotate - [select for diffs], Sun Nov 6 13:16:50 2016 UTC (7 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.110: +2 -2 lines
Diff to previous 1.110 (colored) to selected 1.33 (colored)
Bump ftp(1)'s cipher default from "all" to "legacy" - this really should be "compat", but that will require further testing. ok beck@
Revision 1.110 / (download) - annotate - [select for diffs], Sat Aug 13 12:55:21 2016 UTC (7 years, 9 months ago) by jsing
Branch: MAIN
Changes since 1.109: +59 -59 lines
Diff to previous 1.109 (colored) to selected 1.33 (colored)
Split out the SSL options handling into a separate function, which makes for more readable code and reduces line wrapping. Also improve error messages by adding tls_config_error() to errx() where appropriate. ok jca@
Revision 1.109 / (download) - annotate - [select for diffs], Wed Jul 13 16:35:47 2016 UTC (7 years, 10 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE,
OPENBSD_6_0
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored) to selected 1.33 (colored)
Adjust existing tls_config_set_cipher() callers for TLS cipher group changes - map the previous configuration to the equivalent in the new groups. This will be revisited post release. Discussed with beck@
Revision 1.108 / (download) - annotate - [select for diffs], Fri May 27 15:16:16 2016 UTC (8 years ago) by jsing
Branch: MAIN
Changes since 1.107: +3 -1 lines
Diff to previous 1.107 (colored) to selected 1.33 (colored)
Per the libtls man page, tls_init() must be called prior to any other tls_* function; so actually do that.
Revision 1.107 / (download) - annotate - [select for diffs], Fri May 6 22:06:09 2016 UTC (8 years, 1 month ago) by jca
Branch: MAIN
Changes since 1.106: +1 -5 lines
Diff to previous 1.106 (colored) to selected 1.33 (colored)
Remove #ifdef INET6 bits, missed in a commit earlier this week This probably broke passive FTP on IPv6 and [ip::v6]:port syntax in RAMDISK ftp(1), sorry about that. The diff was initially ok millert@
Revision 1.106 / (download) - annotate - [select for diffs], Wed Mar 16 15:41:11 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.105: +3 -3 lines
Diff to previous 1.105 (colored) to selected 1.33 (colored)
More "(<blah> *)0" -> NULL, avoiding any stdarg functions. Feedback millert@ kettenis@
Revision 1.105 / (download) - annotate - [select for diffs], Wed Nov 4 17:54:06 2015 UTC (8 years, 7 months ago) by jca
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE,
OPENBSD_5_9
Changes since 1.104: +5 -5 lines
Diff to previous 1.104 (colored) to selected 1.33 (colored)
Fix inverted pledge requests, from Frederic Nowak
Revision 1.104 / (download) - annotate - [select for diffs], Sun Oct 18 03:39:37 2015 UTC (8 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.103: +5 -5 lines
Diff to previous 1.103 (colored) to selected 1.33 (colored)
First casualty of making pledge "dns" mandatory for dns users. "dns" was missing, and this was relying on "inet" support..
Revision 1.103 / (download) - annotate - [select for diffs], Fri Oct 16 05:35:19 2015 UTC (8 years, 7 months ago) by doug
Branch: MAIN
Changes since 1.102: +23 -1 lines
Diff to previous 1.102 (colored) to selected 1.33 (colored)
Pledge for ftp(1) in non-interactive mode. We will iterate and remove some of the pledges in the future. This is conservative for now. Tested by sthen@ and myself. ok deraadt@
Revision 1.102 / (download) - annotate - [select for diffs], Sun Feb 22 15:09:54 2015 UTC (9 years, 3 months ago) by jsing
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE,
OPENBSD_5_8,
OPENBSD_5_7_BASE,
OPENBSD_5_7
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.33 (colored)
Rename tls_config_insecure_noverifyhost() to tls_config_insecure_noverifyname(), so that it is more accurate and keeps inline with the distinction between DNS hostname and server name. Requested by tedu@ during s2k15.
Revision 1.101 / (download) - annotate - [select for diffs], Sun Feb 22 14:55:41 2015 UTC (9 years, 3 months ago) by jsing
Branch: MAIN
Changes since 1.100: +5 -4 lines
Diff to previous 1.100 (colored) to selected 1.33 (colored)
Set the TLS ciphers to "compat" mode, restoring the previous behaviour.
Revision 1.100 / (download) - annotate - [select for diffs], Tue Feb 17 22:39:32 2015 UTC (9 years, 3 months ago) by tedu
Branch: MAIN
Changes since 1.99: +6 -3 lines
Diff to previous 1.99 (colored) to selected 1.33 (colored)
add -M to disable progressmeter. ok dlg halex millert
Revision 1.99 / (download) - annotate - [select for diffs], Fri Feb 13 08:41:34 2015 UTC (9 years, 3 months ago) by sthen
Branch: MAIN
Changes since 1.98: +9 -9 lines
Diff to previous 1.98 (colored) to selected 1.33 (colored)
Call tls_config earlier; otherwise TLS_PROTOCOLS_ALL (to allow TLSv1.0 etc) was only called if -S was used. Fixes TLSv1.0/1.1. Problem reported by nigel@, ok jsing
Revision 1.98 / (download) - annotate - [select for diffs], Thu Feb 12 04:23:17 2015 UTC (9 years, 4 months ago) by jsing
Branch: MAIN
Changes since 1.97: +3 -1 lines
Diff to previous 1.97 (colored) to selected 1.33 (colored)
Change TLS_PROTOCOLS_DEFAULT to be TLSv1.2 only. Add a TLS_PROTOCOLS_ALL that includes all currently supported protocols (TLSv1.0, TLSv1.1 and TLSv1.2). Change all users of libtls to use TLS_PROTOCOLS_ALL so that they maintain existing behaviour. Discussed with tedu@ and reyk@.
Revision 1.97 / (download) - annotate - [select for diffs], Mon Feb 9 08:24:21 2015 UTC (9 years, 4 months ago) by tedu
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored) to selected 1.33 (colored)
various defines always exist, so delete the ifdef test. the socks support seems to be dead, since there are no other references. also, redeclaring a standard function? that's a no-no. custom compiles with gate-ftp servers don't need to be supported either. ok deraadt
Revision 1.96 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:08 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.95: +2 -3 lines
Diff to previous 1.95 (colored) to selected 1.33 (colored)
Replace <sys/param.h> with <limits.h> and other less dirty headers where possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
Revision 1.95 / (download) - annotate - [select for diffs], Fri Oct 31 13:48:21 2014 UTC (9 years, 7 months ago) by jsing
Branch: MAIN
Changes since 1.94: +23 -23 lines
Diff to previous 1.94 (colored) to selected 1.33 (colored)
Update ftp(1) to use libtls instead of libressl.
Revision 1.94 / (download) - annotate - [select for diffs], Fri Oct 3 14:15:41 2014 UTC (9 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.93: +4 -2 lines
Diff to previous 1.93 (colored) to selected 1.33 (colored)
update for new ressl noverify API
Revision 1.93 / (download) - annotate - [select for diffs], Fri Oct 3 13:44:08 2014 UTC (9 years, 8 months ago) by jsing
Branch: MAIN
Changes since 1.92: +10 -7 lines
Diff to previous 1.92 (colored) to selected 1.33 (colored)
Update ftp ressl configuration to handle recent changes in the library.
Revision 1.92 / (download) - annotate - [select for diffs], Wed Jul 16 04:52:43 2014 UTC (9 years, 10 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE,
OPENBSD_5_6
Changes since 1.91: +14 -50 lines
Diff to previous 1.91 (colored) to selected 1.33 (colored)
Clean up the ifdef maze in usage() by reformatting it to have distinct !SMALL and SMALL sections. This makes future changes easier to review and to compare with the man page's synopsis. The usage output is the same as before so there is no change from the user's point of view. usage() cleanup and !SMALL/SMALL separation suggested by jmc@ ok jmc@
Revision 1.91 / (download) - annotate - [select for diffs], Mon Jul 14 09:26:27 2014 UTC (9 years, 10 months ago) by jsing
Branch: MAIN
Changes since 1.90: +28 -14 lines
Diff to previous 1.90 (colored) to selected 1.33 (colored)
Convert ftp(1) to libressl, rather than rolling in^W^Whand rolling libssl. ok beck@ deraadt@
Revision 1.90 / (download) - annotate - [select for diffs], Mon Jul 14 05:54:12 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.89: +9 -2 lines
Diff to previous 1.89 (colored) to selected 1.33 (colored)
Repair handling of ^C and ^D around command prompts, by inserting correct newlines. Of course, that means removing stdio use from signal handlers. Can we find someone to rewrite the entire interactive half of this program? ok guenther
Revision 1.89 / (download) - annotate - [select for diffs], Fri Jul 11 18:19:45 2014 UTC (9 years, 11 months ago) by halex
Branch: MAIN
Changes since 1.88: +6 -6 lines
Diff to previous 1.88 (colored) to selected 1.33 (colored)
simplify and slightly tweak user agent handling ok lteo@
Revision 1.88 / (download) - annotate - [select for diffs], Fri Jul 11 03:31:52 2014 UTC (9 years, 11 months ago) by lteo
Branch: MAIN
Changes since 1.87: +18 -3 lines
Diff to previous 1.87 (colored) to selected 1.33 (colored)
Allow ftp(1) to change its User-Agent for HTTP(S) URL requests using a -U command-line option. feedback from deraadt@, halex@, and Adam Thompson ok deraadt@ sthen@, man page changes ok jmc@
Revision 1.87 / (download) - annotate - [select for diffs], Thu Jan 23 00:39:15 2014 UTC (10 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE,
OPENBSD_5_5
Changes since 1.86: +8 -5 lines
Diff to previous 1.86 (colored) to selected 1.33 (colored)
Add -D shorttitle support, so that the progress meter can show some sort of reason why it is processing a certain file. This will be used by the installer for that purpose. ok krw rpe
Revision 1.86 / (download) - annotate - [select for diffs], Tue Dec 24 13:00:59 2013 UTC (10 years, 5 months ago) by jca
Branch: MAIN
Changes since 1.85: +75 -2 lines
Diff to previous 1.85 (colored) to selected 1.33 (colored)
Add support for SSL/TLS server certificate validation, enabled by default. See the documentation for the `-S' switch. This also allows setting the preferred ciphers for the communication. Documentation bits ok'ed by jmc@, ok beck@ sthen@.
Revision 1.85 / (download) - annotate - [select for diffs], Sun Aug 26 02:16:02 2012 UTC (11 years, 9 months ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE,
OPENBSD_5_4,
OPENBSD_5_3_BASE,
OPENBSD_5_3
Changes since 1.84: +10 -9 lines
Diff to previous 1.84 (colored) to selected 1.33 (colored)
Make a few ftp(1) usage/man page changes related to Basic authentication: - Combine the http and https usage formats into a single http[s] format to make it more concise. - In the AUTO-FETCHING FILES section of the ftp(1) man page, mention that specifying "user" and "password" with HTTP and HTTPS URLs will log in using Basic authentication (if http_proxy is not defined). - When compiled with -DSMALL, fix ftp(1) usage so that "[user:password@]" is not shown for http[s] since Basic authentication is not supported with -DSMALL. Done with a lot of discussion with and help from jmc@ (thank you!). ok deraadt haesbaert jmc
Revision 1.84 / (download) - annotate - [select for diffs], Tue Aug 14 20:47:08 2012 UTC (11 years, 9 months ago) by haesbaert
Branch: MAIN
Changes since 1.83: +7 -5 lines
Diff to previous 1.83 (colored) to selected 1.33 (colored)
Add support for basic HTTP authentication as described on RFC 2617 and RFC 3986. This allows the following idiom in ftp: ftp http[s]://user:pass@host/file With some pointers from halex a lot of testing and feedback from lteo, thanks a lot. ok lteo@
Revision 1.83 / (download) - annotate - [select for diffs], Sat May 19 02:04:22 2012 UTC (12 years ago) by lteo
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE,
OPENBSD_5_2
Changes since 1.82: +7 -4 lines
Diff to previous 1.82 (colored) to selected 1.33 (colored)
Reformat usage() to avoid the line wrap, and make it match the way it looks on the man page. ok haesbaert jmc henning
Revision 1.82 / (download) - annotate - [select for diffs], Mon Apr 30 13:41:26 2012 UTC (12 years, 1 month ago) by haesbaert
Branch: MAIN
Changes since 1.81: +24 -4 lines
Diff to previous 1.81 (colored) to selected 1.33 (colored)
Add a -s flag to ftp(1) to let the user specify the source IP address of the connection. This is useful for testing ftp(1) over VPN tunnels. This -s flag is present in the other BSDs, including OS X. All work was done by Lawrence Teo, thanks (-:. ok myself mikeb
Revision 1.81 / (download) - annotate - [select for diffs], Tue Jun 29 23:12:33 2010 UTC (13 years, 11 months ago) by halex
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE,
OPENBSD_5_1,
OPENBSD_5_0_BASE,
OPENBSD_5_0,
OPENBSD_4_9_BASE,
OPENBSD_4_9,
OPENBSD_4_8_BASE,
OPENBSD_4_8
Changes since 1.80: +10 -3 lines
Diff to previous 1.80 (colored) to selected 1.33 (colored)
fix output handling: - if a remote file by the name '-' is retrieved, that does not imply it should go to standard output... - make -o '' reset any previous -o action - properly handle multiple -o 's ok phessler@
Revision 1.80 / (download) - annotate - [select for diffs], Sun Aug 9 18:36:11 2009 UTC (14 years, 10 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE,
OPENBSD_4_7
Changes since 1.79: +10 -3 lines
Diff to previous 1.79 (colored) to selected 1.33 (colored)
document the "file:file" auto-fetching mode. based on a conversation with martynas@; diff tweaked by jmc@ and martynas@ ok jmc@, martynas@
Revision 1.79 / (download) - annotate - [select for diffs], Sat Jun 6 12:07:33 2009 UTC (15 years ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE,
OPENBSD_4_6
Changes since 1.78: +5 -5 lines
Diff to previous 1.78 (colored) to selected 1.33 (colored)
it fetches multiple urls; so usage was wrong. ok sthen@
Revision 1.78 / (download) - annotate - [select for diffs], Thu Jun 4 20:58:34 2009 UTC (15 years ago) by martynas
Branch: MAIN
Changes since 1.77: +1 -2 lines
Diff to previous 1.77 (colored) to selected 1.33 (colored)
set anonftp a little later; in autofetcher itself. after we actually know that that login is not provided in url; and we should guess it. fixes a bug reported by halex@ where it tried to login as 'ftp' after unsuccessful logins; ok theo, halex@, krw@
Revision 1.77 / (download) - annotate - [select for diffs], Tue May 5 19:35:30 2009 UTC (15 years, 1 month ago) by martynas
Branch: MAIN
Changes since 1.76: +17 -34 lines
Diff to previous 1.76 (colored) to selected 1.33 (colored)
make it clean removing the ifdef SMALL maze. separate cmds and small stuff. make it a fetcher. shrinks quite a bit agreed by millert@, krw@ ok theo, sthen@
Revision 1.76 / (download) - annotate - [select for diffs], Mon Apr 27 22:51:51 2009 UTC (15 years, 1 month ago) by martynas
Branch: MAIN
Changes since 1.75: +3 -1 lines
Diff to previous 1.75 (colored) to selected 1.33 (colored)
remove uploading and macros support from install media; to save some space discussed with theo, todd@, millert@ tested and looked over by sthen@
Revision 1.75 / (download) - annotate - [select for diffs], Mon Apr 27 21:37:13 2009 UTC (15 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.74: +1 -11 lines
Diff to previous 1.74 (colored) to selected 1.33 (colored)
toast the rcsid strings which just get in the way
Revision 1.74 / (download) - annotate - [select for diffs], Mon Apr 27 08:32:15 2009 UTC (15 years, 1 month ago) by sobrado
Branch: MAIN
Changes since 1.73: +3 -4 lines
Diff to previous 1.73 (colored) to selected 1.33 (colored)
embellish usage now that -T has been removed.
Revision 1.73 / (download) - annotate - [select for diffs], Sun Apr 26 21:26:03 2009 UTC (15 years, 1 month ago) by martynas
Branch: MAIN
Changes since 1.72: +4 -8 lines
Diff to previous 1.72 (colored) to selected 1.33 (colored)
figure out titles automatically by using remote file name. remove -T and just show titles by default for non-verbose transfers; discussed with, ok theo, sthen@
Revision 1.72 / (download) - annotate - [select for diffs], Mon Apr 13 01:47:04 2009 UTC (15 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.71: +9 -5 lines
Diff to previous 1.71 (colored) to selected 1.33 (colored)
add a "-T title" option to ftp; this is is used in progress bar mode to show which filename is being used. ok krw, mdoc repair from jmc
Revision 1.71 / (download) - annotate - [select for diffs], Fri Aug 22 08:52:35 2008 UTC (15 years, 9 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE,
OPENBSD_4_5
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.33 (colored)
default file transfer type is binary, not ascii; commands which toggle settings can take an explicit on or off argument to force the setting appropiately, show these arguments in usage; synchronize synopsis and usage of commands; spacing; KNF; other minor documentation tweaks. written with help by jmc@ ok jmc@ (documentation), martynas@ (type usage and default file transfer type)
Revision 1.70 / (download) - annotate - [select for diffs], Tue Jul 8 21:07:57 2008 UTC (15 years, 11 months ago) by martynas
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE,
OPENBSD_4_4
Changes since 1.69: +24 -6 lines
Diff to previous 1.69 (colored) to selected 1.33 (colored)
- add support for recursive transfers (but not for floppies), e.g. 'mget -cr 4.*' would recursively fetch (-r), and resume the previous transfers (-c) of 4.X release directories uses local matching (fnmatch), but only for recursive transfers. current behavior is not changed in any way. - while here, ifndef SMALL debugging stuff, this saves some space, for floppies - some debugging code was enabled for non-debugging mode, checks assume debug is set to zero, but it's not initially set - all "Confirm with" prompts are forced, remove redundant argument - fix usage: -C and -c are not available for SMALL discussed a year ago w/ pyr@ looks good to millert@ previous version looked good to pyr@ man page tweaks & ok jmc@
Revision 1.69 / (download) - annotate - [select for diffs], Wed Jun 25 21:15:19 2008 UTC (15 years, 11 months ago) by martynas
Branch: MAIN
Changes since 1.68: +16 -16 lines
Diff to previous 1.68 (colored) to selected 1.33 (colored)
in resume mode, pass -c to mget when {dir,file}hasglob, so that i'm able to continue multiple transfers with -C; ok millert@ while here fix some comments (!SMALL vs. SMALL stuff), and add missing
Revision 1.68 / (download) - annotate - [select for diffs], Wed Nov 28 16:21:25 2007 UTC (16 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE,
OPENBSD_4_3
Changes since 1.67: +11 -9 lines
Diff to previous 1.67 (colored) to selected 1.33 (colored)
- [-C] and [-c cookie] do not belong in the first synopsis/usage(); after some discussion with martynas - tweak the description of -C a little more, for readability
Revision 1.67 / (download) - annotate - [select for diffs], Mon Nov 26 12:39:00 2007 UTC (16 years, 6 months ago) by martynas
Branch: MAIN
Changes since 1.66: +11 -4 lines
Diff to previous 1.66 (colored) to selected 1.33 (colored)
implement -C for continuing ftp, http(s), and file transfers ok millert@, pyr@
Revision 1.66 / (download) - annotate - [select for diffs], Wed Sep 5 08:04:49 2007 UTC (16 years, 9 months ago) by moritz
Branch: MAIN
Changes since 1.65: +5 -5 lines
Diff to previous 1.65 (colored) to selected 1.33 (colored)
Replace magic numbers in calls to shutdown(2) with their respective defines. ok millert@
Revision 1.65 / (download) - annotate - [select for diffs], Sat Jun 16 08:58:33 2007 UTC (16 years, 11 months ago) by espie
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2
Changes since 1.64: +19 -7 lines
Diff to previous 1.64 (colored) to selected 1.33 (colored)
implement a `keep-alive' option that sends bytes over an inactive connection. The FTP protocol provides us with a NOOP operation that is perfectly suitable for that, and so far servers are happy with it. Sending the command slowly is an idea I borrowed from spamd. No change for people not using the option, so it can't break normal ftp. okay beck@, jmc@
Revision 1.64 / (download) - annotate - [select for diffs], Wed Jun 13 18:43:16 2007 UTC (17 years ago) by jmc
Branch: MAIN
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored) to selected 1.33 (colored)
- shorten -c's argument name to avoid ugly line split - tidy up the description of -c and http_cookies - add -c to usage()
Revision 1.63 / (download) - annotate - [select for diffs], Wed Jun 13 13:52:26 2007 UTC (17 years ago) by pyr
Branch: MAIN
Changes since 1.62: +18 -3 lines
Diff to previous 1.62 (colored) to selected 1.33 (colored)
Enable cookie support. This allows parsing of netscape-like cookie jars and sending of appropriate cookies. No retrieval of new cookies is done. Careful review and lots of input by millert and ray. ok millert@, ray@
Revision 1.62 / (download) - annotate - [select for diffs], Sat Apr 7 23:20:18 2007 UTC (17 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.61: +7 -6 lines
Diff to previous 1.61 (colored) to selected 1.33 (colored)
use strtonum, from jason dixon
Revision 1.61 / (download) - annotate - [select for diffs], Tue May 16 16:20:42 2006 UTC (18 years ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1,
OPENBSD_4_0_BASE,
OPENBSD_4_0
Changes since 1.60: +12 -2 lines
Diff to previous 1.60 (colored) to selected 1.33 (colored)
https URL support; rototilled by a few people including me; originally from Rainer_Giedat@genua.de
Revision 1.60 / (download) - annotate - [select for diffs], Tue Apr 25 05:45:20 2006 UTC (18 years, 1 month ago) by tedu
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) to selected 1.33 (colored)
two strtol calls that were begging to be converted to strtonum
Revision 1.59 / (download) - annotate - [select for diffs], Wed Sep 21 22:31:47 2005 UTC (18 years, 8 months ago) by fgsch
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE,
OPENBSD_3_9
Changes since 1.58: +8 -4 lines
Diff to previous 1.58 (colored) to selected 1.33 (colored)
add ability to disable EPSV/EPRT from command-line. from Thorsten Glaser via Matt Van Mater < matt dot vanmater at gmail dot com > with some minor mods. deraadt@ jmc@ ok
Revision 1.58 / (download) - annotate - [select for diffs], Tue Jul 20 03:50:26 2004 UTC (19 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE,
OPENBSD_3_8,
OPENBSD_3_7_BASE,
OPENBSD_3_7,
OPENBSD_3_6_BASE,
OPENBSD_3_6
Changes since 1.57: +11 -15 lines
Diff to previous 1.57 (colored) to selected 1.33 (colored)
ansi; khalek@linuxgamers.net
Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 16 21:46:22 2003 UTC (20 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE,
OPENBSD_3_5
Changes since 1.56: +4 -8 lines
Diff to previous 1.56 (colored) to selected 1.33 (colored)
for -DSMALL, do not include rcsid[]s
Revision 1.56 / (download) - annotate - [select for diffs], Thu Nov 20 12:43:55 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored) to selected 1.33 (colored)
ftp.1: - simpler macros - sort options - some updates - remove some old groff stuff main.c: sync usage()
Revision 1.55 / (download) - annotate - [select for diffs], Fri Oct 31 08:47:31 2003 UTC (20 years, 7 months ago) by otto
Branch: MAIN
Changes since 1.54: +7 -4 lines
Diff to previous 1.54 (colored) to selected 1.33 (colored)
New libedit api changes. Tested by djm@, mouring@, jmc@. ok deraadt@
Revision 1.54 / (download) - annotate - [select for diffs], Wed Jul 2 21:04:10 2003 UTC (20 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE,
OPENBSD_3_4
Changes since 1.53: +3 -5 lines
Diff to previous 1.53 (colored) to selected 1.33 (colored)
protos
Revision 1.53 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:08 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.52: +3 -7 lines
Diff to previous 1.52 (colored) to selected 1.33 (colored)
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
Revision 1.52 / (download) - annotate - [select for diffs], Sat Apr 5 17:19:47 2003 UTC (21 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.33 (colored)
string fixes; ok miod henning
Revision 1.51 / (download) - annotate - [select for diffs], Mon Mar 31 23:04:07 2003 UTC (21 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.50: +5 -5 lines
Diff to previous 1.50 (colored) to selected 1.33 (colored)
Treat empty environment variables the same as NULL. henning@ OK
Revision 1.50 / (download) - annotate - [select for diffs], Tue Jun 4 10:13:23 2002 UTC (22 years ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE,
OPENBSD_3_3,
OPENBSD_3_2_BASE,
OPENBSD_3_2
Changes since 1.49: +5 -5 lines
Diff to previous 1.49 (colored) to selected 1.33 (colored)
We want sync usage() w/ manual since -4/-6 options have been added. millert@ ok
Revision 1.49 / (download) - annotate - [select for diffs], Thu May 30 06:51:46 2002 UTC (22 years ago) by deraadt
Branch: MAIN
Changes since 1.48: +11 -3 lines
Diff to previous 1.48 (colored) to selected 1.33 (colored)
-4 and -6 options; kanai@big.or.jp; itojun ok
Revision 1.48 / (download) - annotate - [select for diffs], Sat Jun 23 22:48:45 2001 UTC (22 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE,
OPENBSD_3_1,
OPENBSD_3_0_BASE,
OPENBSD_3_0
Changes since 1.47: +4 -11 lines
Diff to previous 1.47 (colored) to selected 1.33 (colored)
remove evil #ifdef __GNUC__ garbage to avoid longjmp clobbering and use volatile instead
Revision 1.47 / (download) - annotate - [select for diffs], Wed Jun 21 19:22:54 2000 UTC (23 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE,
OPENBSD_2_9,
OPENBSD_2_8_BASE,
OPENBSD_2_8
Changes since 1.46: +8 -2 lines
Diff to previous 1.46 (colored) to selected 1.33 (colored)
add epsv4 command, which turns off epsv on ipv4 (off by dfeault) automagicaslly disable epsv on ipv4, if epsv fails for single connection. merge from netbsd-current. req from fgs.
Revision 1.46 / (download) - annotate - [select for diffs], Sun Jun 11 09:03:32 2000 UTC (24 years ago) by fgsch
Branch: MAIN
Changes since 1.45: +5 -4 lines
Diff to previous 1.45 (colored) to selected 1.33 (colored)
do not add empty lines to history; always check the size of the returned string by el_gets.
Revision 1.45 / (download) - annotate - [select for diffs], Wed Mar 22 15:38:23 2000 UTC (24 years, 2 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE,
OPENBSD_2_7
Changes since 1.44: +4 -3 lines
Diff to previous 1.44 (colored) to selected 1.33 (colored)
fix overflows, ok aaron@
Revision 1.44 / (download) - annotate - [select for diffs], Wed Dec 8 12:57:06 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.43: +39 -38 lines
Diff to previous 1.43 (colored) to selected 1.33 (colored)
ftp(1) from KAME, should be good for testing.
Revision 1.43 / (download) - annotate - [select for diffs], Sat Nov 21 02:58:37 1998 UTC (25 years, 6 months ago) by d
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE,
OPENBSD_2_6,
OPENBSD_2_5_BASE,
OPENBSD_2_5
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.33 (colored)
add -m to usage()
Revision 1.42 / (download) - annotate - [select for diffs], Sat Sep 19 20:47:17 1998 UTC (25 years, 8 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE,
OPENBSD_2_4
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored) to selected 1.33 (colored)
Make -m flag turn on progress meter in all situations
Revision 1.41 / (download) - annotate - [select for diffs], Sat Sep 19 20:12:31 1998 UTC (25 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.40: +7 -3 lines
Diff to previous 1.40 (colored) to selected 1.33 (colored)
add -m option to turn on progress meter in non-verbose mode
Revision 1.40 / (download) - annotate - [select for diffs], Mon Jun 8 16:55:58 1998 UTC (26 years ago) by millert
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) to selected 1.33 (colored)
Fix some problems noted by lukem@netbsd.org o getopt string is wrong in main(); (missing : after P) o use of vprintf(...) instead of vfprintf(ttyout,...) in ftp.c::command() o missing \n in fputs in cmds.c::status() o should use strtol() instead of atol() o sometimes use 'NULL' instead of 'NUL' (in comments)
Revision 1.39 / (download) - annotate - [select for diffs], Wed May 13 08:59:08 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.38: +5 -2 lines
Diff to previous 1.38 (colored) to selected 1.33 (colored)
make signal handlers save/restore errno
Revision 1.38 / (download) - annotate - [select for diffs], Tue Feb 17 23:22:56 1998 UTC (26 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE,
OPENBSD_2_3
Changes since 1.37: +11 -10 lines
Diff to previous 1.37 (colored) to selected 1.33 (colored)
Add a new option "-o filename" for autofetch mode. Allows use of "-" to mean stdout. This replaces the old (unreliable) hueristic of checking if stdout is a tty and if not make the output go to stdout.
Revision 1.37 / (download) - annotate - [select for diffs], Wed Dec 17 16:03:05 1997 UTC (26 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.36: +30 -11 lines
Diff to previous 1.36 (colored) to selected 1.33 (colored)
By default, use passive mode and fall back to active as needed. The user can specify active only with the -A flag, or use the new FTPMODE envariable.
Revision 1.36 / (download) - annotate - [select for diffs], Thu Sep 4 04:37:16 1997 UTC (26 years, 9 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE,
OPENBSD_2_2
Changes since 1.35: +37 -6 lines
Diff to previous 1.35 (colored) to selected 1.33 (colored)
Updtaes from NetBSD (lukem) bugs fixed: * don't interpret '-' or '|' when a local filename is determined from the remote name (i.e, in mget, and in get with only one argument). This is implemented using an extra argument to recvrequest(). Fixes a major security hole. * clean up memory leak when using globulize() * clean up a couple of comments * fix wording in TNF copyright features added: * support for TIS fwtk gate-ftp servers: * read defaults from $FTPSERVER && $FTPSERVERPORT * start in gate-ftp mode if invoked as 'gate-ftp' * toggle or set with 'gate [host [port]]' Other changes: * use symbolic flags in access(2) * Use USHRT_MAX, not 0xffff
Revision 1.35 / (download) - annotate - [select for diffs], Wed Aug 6 17:35:42 1997 UTC (26 years, 10 months ago) by mickey
Branch: MAIN
Changes since 1.34: +4 -3 lines
Diff to previous 1.34 (colored) to selected 1.33 (colored)
proper msgs display w/ -r
Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 25 21:56:22 1997 UTC (26 years, 10 months ago) by millert
Branch: MAIN
Changes since 1.33: +18 -10 lines
Diff to previous 1.33 (colored)
Updates from NetBSD (lukem) include -Wall cleanup. More -W* cleanup and in_port_t usage by me.
Revision 1.33 / (download) - annotate - [selected], Tue Jun 10 19:39:54 1997 UTC (27 years ago) by millert
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored)
Disable progress meter if started as a bg process. Also don't print the progress meter if the ftp process is put in the bg (but do print it when/if the process is foregrounded). From Enami Tsugutomo <enami@ba2.so-net.or.jp> with tweaks by me.
Revision 1.32 / (download) - annotate - [select for diffs], Sun Jun 1 22:30:49 1997 UTC (27 years ago) by deraadt
Branch: MAIN
Changes since 1.31: +5 -4 lines
Diff to previous 1.31 (colored) to selected 1.33 (colored)
fix emacs batch download problem, i think
Revision 1.31 / (download) - annotate - [select for diffs], Mon Apr 28 20:35:59 1997 UTC (27 years, 1 month ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_1_BASE,
OPENBSD_2_1
Changes since 1.30: +5 -4 lines
Diff to previous 1.30 (colored) to selected 1.33 (colored)
Deal with $TERM not being set (like in single user mode).
Revision 1.30 / (download) - annotate - [select for diffs], Wed Apr 23 20:33:19 1997 UTC (27 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.29: +25 -18 lines
Diff to previous 1.29 (colored) to selected 1.33 (colored)
allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to work
Revision 1.29 / (download) - annotate - [select for diffs], Fri Apr 11 23:14:04 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored) to selected 1.33 (colored)
emacs is dumb too--the $TERM entry that is.
Revision 1.28 / (download) - annotate - [select for diffs], Thu Apr 10 00:17:10 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.27: +15 -36 lines
Diff to previous 1.27 (colored) to selected 1.33 (colored)
Sync with NetBSD (lukem) * support $ftp_proxy for ftp:// transfers [bin/3245] * add "more" & "less" as synonyms for "page" * move editline setup code into controlediting(), and call appropriately. only setup setup terminal if going into interactive mode.
Revision 1.27 / (download) - annotate - [select for diffs], Sat Apr 5 19:53:10 1997 UTC (27 years, 2 months ago) by kstailey
Branch: MAIN
Changes since 1.26: +9 -6 lines
Diff to previous 1.26 (colored) to selected 1.33 (colored)
if TERM=dumb disable progress and editing for emacs ange-ftp
Revision 1.26 / (download) - annotate - [select for diffs], Tue Apr 1 21:19:05 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored) to selected 1.33 (colored)
Disable editing when in batch mode. Idea from Theo. This makes ``ftp ftp://some.place.com/some/file &'' work.
Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 21 20:59:30 1997 UTC (27 years, 2 months ago) by millert
Branch: MAIN
Changes since 1.24: +23 -23 lines
Diff to previous 1.24 (colored) to selected 1.33 (colored)
Add in recent NetBSD changes we didn't already have: Always compile complete.c but ifdef out the bits if -DSMALL (christos) reset interactive mode correctly in auto_fetch() mget mode (lukem)
Revision 1.24 / (download) - annotate - [select for diffs], Fri Mar 14 05:36:02 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.23: +15 -11 lines
Diff to previous 1.23 (colored) to selected 1.33 (colored)
Fix problem where tty mode could get clobbered when ftp was suspended. Call el_parse() to catch editrc(5) commands if the command is not known to ftp. Thorsten did all the real work for this :-)
Revision 1.23 / (download) - annotate - [select for diffs], Fri Mar 14 05:03:45 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.33 (colored)
Change an occurrence of if (fromatty) -> if (edit) -- from Thorsten.
Revision 1.22 / (download) - annotate - [select for diffs], Fri Mar 14 04:32:17 1997 UTC (27 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.21: +22 -14 lines
Diff to previous 1.21 (colored) to selected 1.33 (colored)
Sync with NetBSD and fix "get foo.txt /dev/tty" wrt progress meter and setting times.
Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 18 18:04:31 1997 UTC (27 years, 3 months ago) by kstailey
Branch: MAIN
Changes since 1.20: +9 -4 lines
Diff to previous 1.20 (colored) to selected 1.33 (colored)
add -e command line option to suppress use of editline(3)\ this is useful for Emacs ange-ftp
Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 5 04:55:19 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (colored) to selected 1.33 (colored)
Include signal.h where reasonable and make signal handlers match what signal(3)'s prototype says (and cast when not). Also change MAXFOO+1 -> MAXFOO since MAXFOO includes the NULL. Support $TMPDIR and use utime(3) not utimes(2) for portability's sake. Don't spew "Passive mode enabled/disabled" unless verbose (this means togglevar() needs to watch for a NULL 'message').
Revision 1.19 / (download) - annotate - [select for diffs], Mon Feb 3 01:22:08 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.18: +2 -4 lines
Diff to previous 1.18 (colored) to selected 1.33 (colored)
Turn off progress bar by default as it interacts poorly with "get FILE /dev/tty" and "get FILE |pager" among others.
Revision 1.18 / (download) - annotate - [select for diffs], Mon Feb 3 01:05:42 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.17: +48 -29 lines
Diff to previous 1.17 (colored) to selected 1.33 (colored)
Add back ``-r'' option and fix strncpy() usage and other nits because I'm anal. Closer to KNF now.
Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 3 01:02:41 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.16: +220 -259 lines
Diff to previous 1.16 (colored) to selected 1.33 (colored)
Sync with NetBSD
Revision 1.16 / (download) - annotate - [select for diffs], Wed Jan 29 22:21:32 1997 UTC (27 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.15: +4 -2 lines
Diff to previous 1.15 (colored) to selected 1.33 (colored)
Break out of infinite loop ftp://home.host/som/path mode if host does not exist. Also, use herror, not perror if gethostbynam() fails.
Revision 1.15 / (download) - annotate - [select for diffs], Sat Jan 25 21:42:33 1997 UTC (27 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.33 (colored)
split cd() into two pieces, whoever was here last did a bad job
Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 15 23:42:31 1997 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.33 (colored)
getopt(3) returns -1 when out of args, not EOF, whee!
Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 9 11:22:16 1997 UTC (27 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.12: +5 -3 lines
Diff to previous 1.12 (colored) to selected 1.33 (colored)
HTTP fetches would always loop indefinitely
Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 7 22:03:39 1997 UTC (27 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored) to selected 1.33 (colored)
some strlen(constant) -> sizeof(ditto) - 1, plus make ftp://host/path work
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 7 21:34:57 1997 UTC (27 years, 5 months ago) by niklas
Branch: MAIN
Changes since 1.10: +5 -3 lines
Diff to previous 1.10 (colored) to selected 1.33 (colored)
Return exit status != 0 if any transfers fail in the commandline specified file fetch mode. Makes backup locations in the ports system work.
Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 18 01:59:15 1996 UTC (27 years, 5 months ago) by michaels
Branch: MAIN
Changes since 1.9: +44 -44 lines
Diff to previous 1.9 (colored) to selected 1.33 (colored)
support getting multiple files at once, e.g "ftp host:pub/tst/test /pub/tst/test2 /pub/tst" will get files "test", then "test2" and then the cd to "pub/tst" on the same host and become interactive without closing/reopening connection each time. (needs leading '/' on every path but the first, as the rest are relative to the first. (a feauture, really))
Revision 1.9 / (download) - annotate - [select for diffs], Tue Dec 17 02:11:45 1996 UTC (27 years, 6 months ago) by michaels
Branch: MAIN
Changes since 1.8: +20 -4 lines
Diff to previous 1.8 (colored) to selected 1.33 (colored)
if pathname given is a valid directory, cd to it at remote, also assume empty pathname means cd to '/', like ncftp (?).
Revision 1.8 / (download) - annotate - [select for diffs], Sat Nov 9 19:58:59 1996 UTC (27 years, 7 months ago) by kstailey
Branch: MAIN
Changes since 1.7: +5 -2 lines
Diff to previous 1.7 (colored) to selected 1.33 (colored)
optional size argument to hash command
Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 31 14:36:57 1996 UTC (27 years, 7 months ago) by mickey
Branch: MAIN
Changes since 1.6: +29 -9 lines
Diff to previous 1.6 (colored) to selected 1.33 (colored)
add -r<seconds> option to retry connection. dunno how to do optional argument.
Revision 1.6 / (download) - annotate - [select for diffs], Tue Sep 3 18:00:06 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE,
OPENBSD_2_0
Changes since 1.5: +11 -4 lines
Diff to previous 1.5 (colored) to selected 1.33 (colored)
http:// support for the command line fetches; useful for the ports subsystem and other scripts. written by brian@saturn.net (and then i clawed at it for a bit..)
Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 26 05:33:38 1996 UTC (27 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +3 -1 lines
Diff to previous 1.4 (colored) to selected 1.33 (colored)
rcsid
Revision 1.4 / (download) - annotate - [select for diffs], Mon Jun 3 16:35:05 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.3: +34 -31 lines
Diff to previous 1.3 (colored) to selected 1.33 (colored)
handle ftp://host/path
Revision 1.3 / (download) - annotate - [select for diffs], Mon Jun 3 15:55:48 1996 UTC (28 years ago) by deraadt
Branch: MAIN
Changes since 1.2: +84 -1 lines
Diff to previous 1.2 (colored) to selected 1.33 (colored)
add support for automatic anonftp fetches of host:path add support for -p portnum might need todo: -N for silence, better exit status for failures
Revision 1.2 / (download) - annotate - [select for diffs], Fri May 10 12:59:51 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.1: +4 -1 lines
Diff to previous 1.1 (colored) to selected 1.33 (colored)
Fence off NULL args in getcmd() (fixes/works around PR#824)
Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:45:17 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.33 (colored)
initial import of NetBSD tree
Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:45:17 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN
Diff to selected 1.33 (colored)
Initial revision