summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert suni'ls ftp rewrite for now.florian2019-05-1629-3510/+11520
| | | | | We are juggling too many things at the moment and we can't deal with the differences in behaviour right now.
* Display "bytes received" like the csrg ftp used to when the progressbarflorian2019-05-154-23/+42
| | | | | | is disabled. Difference pointed out by deraadt OK kurtm, sunil
* Add the -m flag to the ftp.1 man page.kmos2019-05-152-7/+12
| | | | | | | Adjust the usage message of ftp(1) to reflect its two operating modes and list missing flags. OK florian@ jmc@
* do not intermingle direct io (write), and potentially buffered io (stdio)deraadt2019-05-142-5/+5
| | | | | against the same outputs ok kmos florian
* Document -vflorian2019-05-141-2/+8
|
* -v forces verbose mode even if stdin is not a terminalflorian2019-05-141-2/+4
| | | | | Found the hard way by bluhm Debugged with deraadt & bluhm
* Enable TLSv1.0 and TLSv1.1jca2019-05-141-1/+5
| | | | | Like the old ftp. Discussed with at least with tedu@ "We should match existing behavior at least for now"
* Remove an unused and leftover label.sunil2019-05-141-2/+1
|
* tls_write(3): Handle short writes.sunil2019-05-141-6/+12
| | | | Ok jca@
* ephermal -> ephemeraltb2019-05-131-2/+2
| | | | From Hiltjo Posthuma
* Fix double free by nulling out pointers after free.tb2019-05-121-1/+6
| | | | from florian, ok jca
* Make the "xx bytes received in y time" message go to the right placekmos2019-05-121-2/+2
| | | | | | by using the login_info() function the other messages use. OK florian@
* zap confusing unneeded parametersespie2019-05-121-4/+4
| | | | okay jca@, jasper@
* Repair ftp -o - and thus pkg_add: print informational messages on stderrjca2019-05-121-2/+3
| | | | ok florian@ espie@
* It will show up in 6.6.florian2019-05-121-2/+2
|
* add rcs idsjasper2019-05-1211-0/+22
|
* Move us from old ftp(1) to Sunil's new ftp(1). The necessary modificationskmos2019-05-1229-11531/+3452
| | | | | | have been made to make it behave. Any new misbehaviors can be fixed in tree. OK florian@ deraadt@ "Have you committed ftp yet?"
* ftp makes a new connection for each auto-fetch file. Remove a lie claimingnaddy2019-05-091-6/+2
| | | | otherwise. ok tb@ tedu@
* Add TLS session support to ftp(1).jsing2018-02-104-13/+40
| | | | | | | | | | | 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@.
* rename var 's' -> 'fd' to ease finding it in a long functionprocter2018-02-071-32/+32
| | | | ok tb@ deraadt@
* eliminate close()/fclose() dance.procter2018-02-071-5/+15
| | | | ok tb@ deraadt@
* Use closefrom(3) instead of manually closing all file descriptorstb2018-01-241-3/+2
| | | | | | between 3 and 19. ok martijn, millert, jca
* Use the monotonic clock for logging progress in cdio(1) and ftp(1).cheloha2017-12-231-14/+14
| | | | | | | Keeps the progress log from blipping or stalling if, e.g., the system time is changed in the midst of a rip or a transfer. ok tb@ jca@
* Initialize 'out' file descriptor to avoid possiblekrw2017-09-251-2/+2
| | | | | | | | uninitialized use. Spotted by clang during 'make release', triggered when both NOSSL and SMALL are defined. ok bluhm@ deraadt@
* Avoid a possible leak in progressmeterjca2017-09-051-2/+4
| | | | From Scott Cheloha, ok bluhm@
* Remove self assignment.anton2017-08-011-2/+1
| | | | ok deraadt@
* tls_close() can return TLS_WANT_POLLIN/TLS_WANT_POLLOUT, handle themsunil2017-03-071-2/+4
| | | | | | appropriately. Ok jca@
* close ftp(1)'s output file to avoid leaking one FD per request.sthen2017-03-021-1/+3
| | | | ok deraadt
* Use a do{}while loop with ssize_t return value when calling tls_read()guenther2017-02-281-12/+10
| | | | problem noted by and ok jsg@
* cetificate -> certificate;jmc2017-01-251-3/+3
|
* Add -S noverifytime to ftp to permit an unvalidated TLS connection whenbeck2017-01-242-3/+10
| | | | you don't knwo what time it is
* Nuke whitespace foolish enough to expose itself during the greatkrw2017-01-2112-46/+46
| | | | "warning:" rectification.
* Move a couple of variables that are unused in SMALL under #ifndef SMALL.krw2017-01-201-3/+6
| | | | ok deraadt@
* Straggling __dead. Mark usage() as __dead and make gcc happier.krw2017-01-202-4/+5
|
* #ifndef SMALL around a couple of non-SMALL labels.krw2017-01-202-2/+6
| | | | ok deraadt@
* HTTPS proxy support for ftp-ssl.jca2017-01-141-8/+6
| | | | | | The install media already allow for plaintext HTTP proxying. The code to support CONNECT is short enough. Reported/fix tested by rpe@, ok deraadt@
* Don't attempt to read .netrc when we already force anonymous FTP (-a).zhuk2017-01-111-2/+2
| | | | | | Patch from Anton Lindqvist via tech@, thanks! okay deraadt@
* Pledge more strictly. This is only enabled on the ramdisk version of thederaadt2017-01-101-8/+29
| | | | | | | | ftp(1) client, which operates only in URL mode. Not willing to spend the time tracking piles of global variables for sub-modes, and finding all the pledge interactions. Would rather have the install media ftp(1) as safe as possible, immediately. ok tb jca
* -#endif /* !SMALL */tb2017-01-071-2/+2
| | | | +#endif /* !NOSSL */
* Add a "-w connect_timeout" option in support of URL-fetching. This allowsderaadt2017-01-034-10/+42
| | | | | | slow / failing connects to be identified. The install script needs this functionaly. ok jca rpe millert
* Split -DSMALL into -DNOSSL, so that a SSL-enabled version of ftp canderaadt2016-12-285-72/+85
| | | | | be built, which is still pretty small (in distrib/special/ftp-ssl). Lots of testing by rpe.
* Correctly handle tls_read()/tls_write().jsing2016-12-241-2/+7
| | | | | | | | | In one tls_read() case, we failed to check for WANT_{POLLIN,POLLOUT}, so fix that. In the same tls_read() case and the tls_write() case we fail to handle errors correctly, which means that error is not reported and can be lost by a futher libtls call. ok beck@ jca@
* missing full stop;jmc2016-12-221-2/+2
|
* add muststaple option so that oscp stapling can be required for sites youbeck2016-12-222-3/+10
| | | | | expect to provide it. ok jsing@
* Eliminate some gcc warnings about 'unused variables', mostly bykrw2016-12-163-7/+13
| | | | | | adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately)
* Avoid splitting the "Requesting %s" printf and its trailing newline.millert2016-12-081-8/+7
| | | | | Fixes a missing newline in one place and an extra one later on when both debug and verbose are set.
* Avoid printf of a NULL pointer as a string in debug mode.millert2016-12-081-8/+8
| | | | OK deraadt@
* Check return value of tls_config_set_protocols(3) and bail out in case ofmestre2016-11-301-2/+5
| | | | | | failure Feedback and OK jsing@
* Bump ftp(1)'s cipher default from "all" to "legacy" - this really shouldjsing2016-11-061-2/+2
| | | | | | be "compat", but that will require further testing. ok beck@
* Remove empty #ifdef and #ifndef blocksfcambus2016-09-271-3/+1
| | | | OK natano@