summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/extern.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add -D shorttitle support, so that the progress meter can show some sortderaadt2014-01-231-1/+2
| | | | | | of reason why it is processing a certain file. This will be used by the installer for that purpose. ok krw rpe
* fix output handling:halex2010-06-291-1/+2
| | | | | | | | | - 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@
* shuffle some things around to deal with incomplete typesjsg2010-04-301-2/+1
| | | | | gcc4 gets upset about. based on suggestions from miod@, ok millert@
* make it clean removing the ifdef SMALL maze. separate cmds andmartynas2009-05-051-114/+25
| | | | | | small stuff. make it a fetcher. shrinks quite a bit agreed by millert@, krw@ ok theo, sthen@
* remove uploading and macros support from install media; to savemartynas2009-04-271-1/+15
| | | | | | some space discussed with theo, todd@, millert@ tested and looked over by sthen@
* figure out titles automatically by using remote file name. removemartynas2009-04-261-3/+2
| | | | | -T and just show titles by default for non-verbose transfers; discussed with, ok theo, sthen@
* add a "-T title" option to ftp; this is is used in progress bar mode toderaadt2009-04-131-1/+2
| | | | show which filename is being used. ok krw, mdoc repair from jmc
* - add support for recursive transfers (but not for floppies), e.g.martynas2008-07-081-2/+8
| | | | | | | | | | | | | | | | | | '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@
* in resume mode, pass -c to mget when {dir,file}hasglob, so that i'mmartynas2008-06-251-2/+2
| | | | | | able to continue multiple transfers with -C; ok millert@ while here fix some comments (!SMALL vs. SMALL stuff), and add missing
* - fix -Wall (no behavior change, a || b && c = a || (b && c) anyway)martynas2008-06-251-1/+3
| | | | | | | | | | | | | | | | | - use argv[0] for "Confirm with", as other confirm()s do - fix confirm cases, pass force=1 for mdelete and mabort too, fixes a bug when you end up deleting all files when you ^C, instead of getting a confirmation - add reput command, that will allow to continue transfer uploads - add -c for mget and mput, that will allow to continue multiple transfers - fix a bug when you use restart command together with put. the progressmeter would start from zero, and eta would show fictional time. this actually allows reput/put -c to have correct progressmeter too - document everything discussed with, suggestions, reminded to ifdef SMALL the code so we're able to fit in floppies, and ok millert@, and jmc@
* fix transfer interrupting when confirmrest mode is used. changemartynas2008-06-161-2/+2
| | | | | confirm() to have a 'force' argument, so that ointer/oconf dance is not needed, and to prevent further bugs like this; ok millert@
* implement a `keep-alive' option that sends bytes over an inactiveespie2007-06-161-1/+2
| | | | | | | | | 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@
* Enable cookie support. This allows parsing of netscape-like cookie jarspyr2007-06-131-1/+3
| | | | | | | 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@
* Remove the .netrc parser when compiling a SMALL binary.pyr2007-06-061-2/+5
| | | | | | there is no .netrc file on the install media and keeping the parser shaves a good deal of bytes in the binary. ok millert@, "go on" deraadt@, "makes sense" steven@
* Fix mget directory traversal vulnerability. From NetBSD. CAN-2002-1345.otto2005-10-121-1/+2
| | | | ok millert@ deraadt@, prodding by david@
* type corrections and other delintingderaadt2004-09-161-2/+2
|
* The empty() function basically effects a poll, so replace it withmillert2003-08-111-2/+1
| | | | real poll(). Gets rid of another static select(). OK deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* http redirect support; adapted from NetBSD.fgsch2002-11-081-2/+2
|
* -4 and -6 options; kanai@big.or.jp; itojun okderaadt2002-05-301-1/+2
|
* Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)millert2002-02-171-3/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-123/+123
|
* add epsv4 command, which turns off epsv on ipv4 (off by dfeault)itojun2000-06-211-1/+2
| | | | | | | automagicaslly disable epsv on ipv4, if epsv fails for single connection. merge from netbsd-current. req from fgs.
* ftp(1) from KAME, should be good for testing.itojun1999-12-081-2/+32
|
* fd_set is not a structart1998-07-071-3/+3
|
* Add a new option "-o filename" for autofetch mode. Allows use ofmillert1998-02-171-2/+2
| | | | | "-" 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.
* Updtaes from NetBSD (lukem)millert1997-09-041-3/+4
| | | | | | | | | | | | | | | | | | | | | 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
* Updates from NetBSD (lukem) include -Wall cleanup.millert1997-07-251-5/+4
| | | | More -W* cleanup and in_port_t usage by me.
* Disable progress meter if started as a bg process. Also don'tmillert1997-06-101-1/+2
| | | | | | 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.
* allow "ftp -aV ftp://host/foo.tar.gz | tar xvfpz -" to workderaadt1997-04-231-2/+2
|
* Sync with NetBSD (lukem):millert1997-04-161-3/+3
| | | | | | | | * differentiate between being connected, and being logged in * cleanup some text messages * support username & password ftp URLs (ftp://user:pass@host/) in non-proxy situations; assume proxy supports it for proxy situations. * cd to / before performing any autofetch transfers
* Sync with NetBSD (lukem)millert1997-04-101-2/+3
| | | | | | | * 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.
* Add in recent NetBSD changes we didn't already have:millert1997-03-211-4/+4
| | | | | Always compile complete.c but ifdef out the bits if -DSMALL (christos) reset interactive mode correctly in auto_fetch() mget mode (lukem)
* Sync with NetBSD and fix "get foo.txt /dev/tty" wrt progress metermillert1997-03-141-6/+7
| | | | and setting times.
* Include signal.h where reasonable and make signal handlers matchmillert1997-02-051-12/+12
| | | | | | | | 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').
* Add back ``-r'' option and fix strncpy() usage and other nits becausemillert1997-02-031-0/+1
| | | | I'm anal. Closer to KNF now.
* Sync with NetBSDmillert1997-02-031-24/+42
|
* split cd() into two pieces, whoever was here last did a bad jobderaadt1997-01-251-2/+3
|
* if pathname given is a valid directory, cd to it at remote, alsomichaels1996-12-171-2/+2
| | | | assume empty pathname means cd to '/', like ncftp (?).
* http:// support for the command line fetches; useful for the ports subsystemderaadt1996-09-031-1/+2
| | | | | and other scripts. written by brian@saturn.net (and then i clawed at it for a bit..)
* rcsidderaadt1996-06-261-0/+1
|
* initial import of NetBSD treederaadt1995-10-181-0/+155