Mon Jul 10 00:28:51 EST 2000

	* released lukemftp 1.4

Thu Jun 15 23:28:49 EST 2000	lukem

	* merge ftp from NetBSD-current (20000615):
		* migrate the SYST parsing from setpeer() into a separate
		  remotesyst().  call remotesyst() only when login has been
		  successful some servers don't let you run SYST until you've
		  successfully logged in.
		* in fetch_ftp(), always call setpeer() with autologin
		  disabled, and use the following ftp_login() to DTRT.  this
		  prevents ftp from trying to login a second time if the
		  first autologin fails when connecting to a remote site
		  anonymously using autofetch.
		* reset unix_proxy and unix_server in cleanuppeer()
		* missed a function conversion in the KNF sweep...

Mon Jun 12 01:16:12 EST 2000	lukem

	* change lukemftp.h to check !HAVE_STRDUP instead of !HAVE_STRSUP.
	  fixes compile problem on systems which have strdup() as a macro.

	* merge ftp from NetBSD-current (20000612):
		from itojun: better fix for previous (doesn't need
		in_addr_t or u_int32_t)

Sun Jun 11 12:19:52 EST 2000	lukem

	* merge ftp from NetBSD-current (20000611):
		portability fixes for lukemftp:
		* initconn(): use in_addr_t instead of u_int32_t when
		  manipulating IPv6 addresses (and assume anything with ipv6
		  has in_addr_t; if not, i'll add an autoconf test for it)
		* ai_unmapped(): not all systems have sin_len; so only set
		  #ifdef BSD4_4
		* fix some lint

Mon Jun  5 21:10:31 EST 2000	lukem

	* released lukemftp 1.3

Mon Jun  5 19:53:49 EST 2000	lukem

	* convert various support files to ANSI C

	* look for strtoll() instead of strtoq()

	* update COPYRIGHT, THANKS, NEWS

	* merge ftp from NetBSD-current (20000605):
		- fix ai_unmapped() to be a no-op in the !def INET6 case
		- display `(-INET6)' at the end of the version string if
		  !def INET6
		- clarify in the man page that IPv6 support may not be present
		  (for lukemftp :)

	* ensure <vis.h> has VIS_WHITE et al

Sun Jun  4 18:00:07 EST 2000	lukem

	* merge ftp from NetBSD-current (20000604):
		- Change `ls' to use the `LIST' and not `NLST' FTP protocol
		  command.  Now that after many years on not caring we find
		  certain popular ftp servers are starting to obey RFC959 to
		  the letter of the law and will only return a list of
		  filenames (not directories or other filetypes) in the
		  output of `NLST', then `LIST' is more useful in this case.
		  (Note that the aforementioned pedanticness means that
		  filename completion isn't as useful as it could be...)
		  Fixes [bin/8937] by David A. Gatwood
		  <dgatwood@deepspace.mklinux.org>
		- convert to ANSI KNF
		- Add support for `fget localfile', which reads a list of
		  filenames to retrieve from localfile.  Based on work by
		  Darren Reed.
		- Update copyright dates.
		- s/strtoq/strtoll/ (the latter is standardised)
		- Add support for 'ftp -u url file ...', to upload a list of
		  files to given url.  Mostly based on [bin/10019] by Scott
		  Aaron Bamford <sab@ansic.net>
		- convert IPv4 mapped address (::ffff:10.1.1.1) into real IPv4
		  address before touching it.  IPv4 mapped address complicates
		  too many things in FTP protocol handling.
		- do not pass scoped IPv6 address notation on Host: directive,
		  since scope identifier is local to the originating node.
		  do not allow scoped IPv6 address notation in URL, if it is
		  via proxy. 
		- fixes from cgd:
		  * sanity check a length (otherwise certain bogus responses
		    can crash ftp)
		  * allow a transfer encoding type of `binary'; certain
		    firewall vendors return this bogus type... 
		- make debugging output unambiguous on IPv6 numeric addrs
		  (don't use host:port)
		- http://[::1]:8080/ is legal.
		- send Host: directive with RFC2732 bracket notation for IPv6
		  numeric, otherwise "host:port" is ambiguous to servers
		  (clarification will be submitted as update to RFC2732).
		- only use getaddrinfo() et al if both NI_NUMERICHOST *and*
		  INET6 are defined...  (allows --disable-ipv6 in lukemftp's
		  configure script to disable this as well, which is good for
		  testing when it appears getaddrinfo() is borken)
		- updated comment on IPv4 mapped address.  sync with kame.
		- Fix examples on using pipes in local filenames.  AFAICT,
		  ftp has always required `dir . |more' not as `dir |more'
		  treats `|more' as the remote filename. Resolves [bin/9922]
		  by Geoff Wing <mason@primenet.com.au>
		- ftp(1): treats IPv4 mapped destination as IPv4 peer, not
		  native IPv6 peer.  this does not support network with SIIT
		  translator.
		- inhibit too-noisy message for scoped address data transfer
		  (will be enabled in "debug" mode).
		- only use IPTOS_ setsockopt()s if they're defined (e.g, SunOS
		  doesn't).  from Havard.Eidnes@runit.sintef.no
		- allow IPv6 extended numeric address in host part.
		  (draft-ietf-ipngwg-scopedaddr-format-01.txt). fixes PR 9616.

	* merge libedit from NetBSD-current (20000604):
		- use strtol() (instead of atoi()) for sane error detection

Wed May 31 19:24:53 EST 2000	lukem

	* merge libedit from NetBSD-current (20000531):
		- Fix refresh glitches when using auto-margin.
		- Don't dump core on empty .editrc files.
		- el_insertstr takes a "const char *" not "char *" now as it
		  doesn't modify the argument.

Thu Feb  3 20:19:40 EST 2000	lukem

	* released lukemftp 1.2

Tue Feb  1 09:47:51 EST 2000	lukem

	* add --enable-ipv6 and --disable-ipv6 to configure

	* modify libedit/sig.? to use sigfunc instead of sig_t, and
	  deprecate autoconf tests for retsigtype and sig_t.
	  This fixes portability problems with Digital UNIX 5.0.

	* merge ftp from NetBSD-current (20000201):
		- define private type `sigfunc' as
			typedef void (*sigfunc) __P((int));
		  and replace use of sig_t and void (*)(int).
		  certain other OSes define sig_t differently to that (they
		  add extra arguments), and it causes problems due to
		  function mismatches, etc...

Wed Jan 26 22:54:38 EST 2000	lukem

	* search for tgetent() in -ltermcap then -lcurses and -lncurses

	* merge ftp from NetBSD-current (20000126):
		- roll back to using sscanf() instead of strptime() to parse
		  `yyyymmddhhmmss' strings, since the latter technically can't
		  parse dates without non alphanumerics between the elements
		  (even though NetBSD's strptime() copes).

Tue Jan 25 19:09:37 EST 2000	lukem

	* merge ftp from NetBSD-current (20000125):
		- complete_ambiguous(): be consistent about completing
		  unambiguous matches; if the word is already complete then
		  return CC_REFRESH so that the higher layer may append a
		  suffix if necessary. Fix from Launey Thomas <ljt@alum.mit.edu>
		- change references from draft-ietf-ipngwg-url-literal-01.txt
		  to RFC2732
		- work around bug in apache 1.3.9 which incorrectly puts a
		  trailing space after the chunksize.  noted by Jun-ichiro
		  itojun Hagino <itojun@itojun.org> in [bin/9096]
		- work around lame ftpd's that don't return a correct post-Y2K
		  date in the output of `MDTM'.  obviously the programmer of
		  aforementioned lame ftpd's did something like
			"19%02d", tm->tm_year
		  instead of
			"%04d", tm->tm_year + TM_YEAR_BASE
		  fixes [bin/9289] by jbernard@mines.edu

	* merge libedit from NetBSD-current (20000125):
		- PR/9244: Kevin Schoedel: libedit dumps bindings
		  inconsistently
		- PR/9243: Kevin Schoedel: libedit ignores repeat count
		- Add support for automatic and magic margins (from tcsh)
		  This makes the rightmost column usable on all programs
		  that use editline.

Tue Dec 21 08:59:22 EST 1999	lukem

	* update INSTALL notes for some systems

	* if sl_init() exists, check return value of sl_add() is int and
	  compile in a replacement copy if it's not the case

	* don't look for <stringlist.h> - always use local prototypes; older
	  NetBSD systems may have conflicting prototypes

Mon Dec 20 11:21:28 EST 1999	lukem

	* merge ftp from NetBSD-current (19991220):
	- Move version from ftp_var.h to version.h
	- Fix chunked support; probably broke after rate limiting was added.
	  Problem noticed/debugging assisted by giles lean
	  <giles@nemeton.com.au>.
	- remove unnecessary freeaddrinfo(res), since res0 was changed to be
	  freed earlier in itojun's last commit. fixes [bin/8948].
	- remove `const char *reason'; it was being assigned but not used.
	- fix memory leak in fetch_url (no freeaddrinfo was there).
	  sync with recent KAME.
	- separate out the main `data pump' loop into two: one that supports
	  rate limiting and one that doesn't. simplifies the code, and speeds
	  up the latter case a bit, at the expense of duplicating a few
	  lines...

Sun Nov 28 18:20:41 EST 1999	lukem

	* merge ftp from NetBSD-current (19991128):
	- implement xsl_init() and  xsl_add(); error checking forms of
	  sl_{init,add}()
	- fix bug where the second press of <TAB> on an empty word (i.e, list
	  all options) may have resulted in an strncmp() against NULL. 
	  (detected by _DIAGASSERT())
	- in cleanuppeer(), reset username to NULL after free()ing it.
	  fixes [bin/8870] by Wolfgang Rupprecht <wolfgang@wsrcc.com>
	- complete_remote(): use remglob("", ...) instead of remglob(".", ...),
	  for listings of the current working directory; some ftp servers don't
	  like `NLST .'.
	  [noted by Giles Lean <giles@nemeton.com.au>]
	- recvrequest(): treat remote=="" as remote==NULL when calling
	  command().  (to support the above change)
	- support `[user@]' in `[user@]host' and `[user@]host[:][path]'.
	  [based on idea (and initial code) from David Maxwell <david@fundy.ca>]
	- `idle' may be invoked without any args
	- reformat some comments
	- reformat usage string in program and man page
	- call updateremotepwd() after successful login, not after successful
	  connect
	- always call setsockopt(, IPPROTO_IP, IP_TOS, ) (et al); using #if
	  defined(IPPROTO_IP) doesn't work on certain foreign systems where
	  enums instead of #defines are used...
	  [noted by Matthias Pfaller <leo@dachau.marco.de>]

Mon Nov 15 23:01:58 EST 1999	lukem

	* released lukemftp 1.1

Mon Nov 15 09:07:01 EST 1999	lukem

	* merge libedit from NetBSD-current (19991115):
		- instead of using a private coord_t global variable to store
		  the size of the rprompt, use the previously unused coord_t
		  el->el_rprompt.p_pos

Sat Nov 13 14:42:22 EST 1999	lukem

	* support caching of results in AC_MSG_TRY_{COMPILE,LINK}
	  autoconf tests

	* add NEWS file

	* clarify copyright statement in COPYING

	* merge ftp from NetBSD-current (19991113):
		- implement `set rprompt'; right side version of `set prompt'.
		  depends on EL_RPROMPT support i added to editline(3).
		- allow $FTPPROMPT and $FTPRPROMPT to override defaults for
		  the relevant prompts
		- move `%' formatting code from prompt() to expandbuf().
		- implement `%.' and `%c', similar to the same % codes in
		  tcsh(1) (functionality I added to tcsh nearly 6 years ago),
		  except that `%.' always does `...trailing' and `%c' always
		  does `/<x>trailing'.
		- unknown `%foo' codes get printed as `%foo'
		- implement updateremotepwd(); update the global variable
		  `remotepwd' to contain the remote working directory.
		- add `set prompt', a user configurable prompt. (defaults to
		  `ftp> ').  the following escape characters a la tcsh(1) are
		  supported: %/, %m, %M, and %n.
		- add global var `username'; used by prompt code
		- fix a couple of minor memory leaks
		- bump version
		- prevent minor memory leak (unnecessary strdup)
		- implement restarting file:/// non-proxied http:// URLs
		  (with -R).
		- fix a semicolono which stopped file:/// from working
		- split the version string into product and version
		- be consistent about reporting the version between:
			+ status command
			+ about:version URL fetch
			+ User-agent sent in http requests
		- hookup(): when using getservbyname() (when getaddrinfo()
		  isn't available), if the provided port is a valid number
		  use that rather than trying to do getservbyname() against
		  it. fixes a problem on foreign systems noted by Chuck
		  Silvers <chuq@chuq.com>
		- support `about:version'. also display the version in the
		  output of `status'.

	* merge libedit from NetBSD-current (19991113):
		- implement printing a right-side prompt. code derived from
		  similar work I wrote for tcsh(1) three years ago.
		- implement EL_RPROMPT, which allows a setting/getting of a
		  function which returns a string to be used as the
		  right-side prompt.

	* replace manually managed config.h.in with acconfig.h and use
	  autoheader to generate the former.

	* add missing entry for `#undef write' in acconfig.h (for SOCKS)

	* configure.in:
		- use `LL' suffix on long long constant used to test
		  snprintf("%lld")
		- test for EL_RPROMPT instead of EL_EDITMODE, since the
		  former is is a newer required feature

	* in makelist, set LC_ALL="C", in case the locale confuses awk.
	  problem noted by Peter Seebach <seebs@plethora.net>

Wed Oct 27 07:00:00 UTC 1999	lukem

	* released 1.0

	* removed libedit/TEST/test.c; no need to distribute it

Mon Oct 25 21:59:54 EST 1999	lukem

	* released 1.0b7

	* put VERSION string into lukemftp.h, and display with the `status'
	  command

Mon Oct 25 11:36:59 EST 1999	lukem

	* merge ftp from NetBSD-current (19991025):
	- fix up confirm() (broke `a' and `p' in last commit)
	- simplify main loop (don't need `top' variable any more)
	- use a struct sockaddr_in6.sin6_addr for the result from inet_pton(),
	  rather than u_char buf[16]
	- add a few more comments

	new features:
	- add `usage'; displays the usage of a command.
	  implemented by calling the c_handler() with argc = 0, argv =
	  "funcname".
	- add `passive auto'; does the same as $FTPMODE=auto.
	- add `set [option value]'; display all options, or set an option to
	  a value.
	- add `unset option'; unset an option.
	- add getoptionvalue() to retrieve an option's value, and replace a few
	  global variables with calls to this.
	- implement cleanuppeer(), which resets various bits of state back to
	  `disconnected'. call in disconnect() and lostpeer().
	- support completing on `options'.
	- improve recovery after a SIGINT may have closed the connection.
	  XXX: there's still a couple to fix

	other stuff:
	- various consistency fixes in the man page.
	- ensure that the command usage strings in the code and man page
	  match reality.
	- mput/mget: check that the connection still exists before each xfer.
	- minor cosmetic changes in confirm().
	- set code correctly in sizecmd() and modtime()
	- don't need \n in err() strings.
	- change lostpeer to take an argument (rather than casting
	  (sig_t)lostpeer in signal handlers)
	- knf and whitespace police.

Sun Oct 24 17:02:59 EST 1999	lukem

	* merge libedit from NetBSD-current (19991024):
		- don't assume locales are not working - it may not be
		  the case
		- re_refresh(): cast the character passed to re_addc() to
		  unsigned char,  so we don't end up calling isprint() with
		  negative value when chars are signed and character value
		  is >= 128
		- Fix pointer arithmatic (caused problems on LP64, including
		  ftp dumping core when `edit' was turned off then on).
		  Problem solved by David Huggins-Daines <dhd@eradicator.org>

Tue Oct 12 18:05:21 EST 1999	lukem

	* install man page from ${srcdir} not from .

Tue Oct 12 17:00:41 EST 1999	lukem

	* released 1.0b6

	* merge from NetBSD-current (19991012):
	  a few user interface and cosmetic tweaks:
		- confirm(): move from util.c to cmds.c. display mnemonic
		  string in its prompt. add support for `q' (terminate
		  current xfer), `?' (show help list)
		- in various signal handlers, output a linefeed only if
		  fromatty.
		- if fgets(stdin) returned NULL (i.e, EOF), clearerr(stdin)
		  because you don't want future fgets to fail. this is not
		  done for the fgets() in the main command loop, since ftp
		  will quit at that point.
		- unless ftp is invoked with -a, don't retain the anonftp
		  setting between hosts (`ftp somehost:' sets anonftp, but
		  you don't want that to `stick' if you close that connection
		  and open a new one).

Mon Oct 11 23:06:38 EST 1999	lukem

	* check for working const

	* reorganise addition of -lukem to LIBS (was being added twice)

	* merge from netbsd-current:
		- use sigjmp_buf instead of jmp_buf for sigsetjmp() buffer

	* libedit: don't bother generating & compiling editline.c, since
	  its component parts are compiled anyway.

Sun Oct 10 12:08:39 EST 1999	lukem

	* released 1.0b5

	* in libedit, use xsignal_restart() (from src/util.c) instead of
	  signal(); the isn't guaranteed to work on some foreign systems
	  (e.g, IRIX) if sigaction() is used in the same program.

	* merge from netbsd-current:
		- use sigsetjmp()/siglongjump() instead of setjmp()/longjmp();
		  the latter don't save the signal mask on some foreign systems.
		- ensure signal handlers don't use stdio and do reset errno
		  if they don't exit with siglongjmp()
		- use a common SIGINT handler for {send,recv}request()
		- allow a second SIGINT during the "xfer aborted. waiting for
		  remote to finish abort." stage. if this occurs, just call
		  lostpeer() to close the connection.  whilst this might be
		  considered brutal, it's also extremely handy if you're
		  impatient or there's lossage at the remote end.

	* add preformatted manual page

	* fix --enable-editline

Wed Oct  6 10:19:00 EST 1999	lukem

	* released 1.0b4

	* don't defining SIGINFO to SIGQUIT if the former doesn't exist; the
	  code now supports both as a method of getting the transfer stats

	* rototill signal handling in the actual data xfer routines, and
	  specifically set SIGQUIT to psummary in each one, to override
	  editline's handler

Tue Oct  5 23:48:29 EST 1999	lukem

	* factor out SIGINFO setting into a handler that is always active
	  (but only prints out info if bytes > 0). only set the handler if
	  SIGINFO is defined

	* hijack SIGQUIT to be the same as SIGINFO

	* in {recv,send}request(), factor a lot of duplicated code out into
	  a `cleanup' section at the end

	* rework shell() a bit

	* enhancments from Marc Horowitz <marc@mit.edu> to improve
	  connection timeouts:
		- implement xsignal_restart(), which only sets the SA_RESTART
		  flag if specifically requested
		- xsignal() is now a wrapper to xsignal_restart(). INFO,
		  USR1, USR2 and WINCH are restartable, ALRM, INT, PIPE and
		  QUIT are not
		- improve getreply()'s timeout code to take advantage of the
		  above

	* improve wording of how globbing works for `classic' URLs (host:path)
	  suggested by John Refling <johnr@imageworks.com> in relation to PRs
	  [bin/8519] and [bin/8520]

	* always compile in the `edit' command even if NO_EDITCOMPLETE defined
	  it's just a no-op in the latter case, which is more consistent to
	  the users

	* always compile in about: support (i.e, remove NO_ABOUT).  i'm
	  entitled to some vanity in this program...

	* update copyrights

Mon Oct  4 10:57:41 EST 1999	lukem

	* Invoke ar with `cr' not `cq'

	* Use AC_PROG_RANLIB to find ranlib, and use it on the libraries

	* Remove `makelist' from dependency list for libedit files; re-running
	  configure shouldn't result in rebuilding libedit

	* Add support for --{en,dis}able-editcomplete (defaults to enabled),
	  which prevents libedit support from being compiled in.
	  From Chris G. Demetriou <cgd@netbsd.org>

Sun Oct  3 16:49:01 EST 1999	lukem

	* touch up the README

	* add COPYING, INSTALL, THANKS

	* whitespace consistency

	* in config.h, replace NO_QUAD with HAVE_QUAD_SUPPORT, and in
	  lukemftp.h define the former if the latter is non zero

	* change test against GETPGRP_VOID from #ifdef to #if

	* snprintf(): in the truncation case, ensure that the length
	  returned is the actual length, not the needed length

Sat Oct  2 00:41:34 EST 1999	lukem

	* fix more lossage with $(srcdir) / $(VPATH) stuff; seems to work now
	  when configured in a separate directory

	* actually test the correct variable when determining whether to run
	  AC_FUNC_GETPGRP

Fri Oct  1 19:32:22 EST 1999	lukem

	* released 1.0b3

	* use AC_PROG_MAKE_SET

	* determine setting of NO_QUAD with configure not lukemftp.h

	* if have long long and have snprintf, test that snprintf
	  supports %lld. if it doesn't use private version

	* change strtoq from returning off_t to returning long long

	* updates from NetBSD mainline:
		- only try epsv once per connection (i.e, don't bother again
		  if it fails)
		- improve description of rate command
		- fix up global vars; they're now externed in ftp_var.h
		  except when main.c includes it
		- remove "pathnames.h"

Fri Oct  1 10:08:43 EST 1999	lukem

	* updates from NetBSD mainline:
		- fix determining of homedir
		- parse_url(): fix checking of portnum
		- move kame copyrights after bsd/tnfi ones

	* released 1.0b2

	* add %lld and %qd support to snprintf() for displaying long long's

	* support VPATH and srcdir

Thu Sep 30 17:19:35 EST 1999	lukem

	* released 1.0b1

	* fix from NetBSD mainline: in empty() FD_ZERO the correct variable

Wed Sep 29 23:34:33 EST 1999	lukem

	* major rework; reimport code from NetBSD-current 1999/09/29 into
	  separate subdirectories and build from there. organisation is now:
		libedit		replacement libedit
		libukem		replacements for missing functions
		src		main ftp source

Mon Sep 27 00:43:12 EST 1999	lukem

	* released 1.0 a6

Sun Sep 26 17:17:05 EST 1999	lukem

	* released 1.0 a5

Sat Sep 25 00:58:28 EST 1999	lukem

	* released 1.0 a4

Fri Sep 24 17:07:07 EST 1999	lukem

	* released 1.0 a3

Fri Sep 24 16:18:29 EST 1999	lukem

	* released 1.0 a2

Tue Sep 21 11:38:49 EST 1999	lukem

	* import usr.src/bin/ftp and usr.src/lib/libedit sources
	  from NetBSD
