"Fossies" - the Fresh Open Source Software Archive

Member "tnftp-20200705/ChangeLog" (5 Jul 2020, 72087 Bytes) of package /linux/privat/tnftp-20200705.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ChangeLog": 20151004_vs_20200705.

    1 $NetBSD: ChangeLog,v 1.73 2020/07/05 11:37:02 lukem Exp $
    2 
    3 Sun Jul  5 11:18:52 UTC 2020	lukem
    4 
    5 	* Release as "tnftp 20200705".
    6 
    7 	* Provide dummy source in libnetbsd to avoid linker errors
    8 	  if no functions are replaced.
    9 
   10 	* Only replace glob if GLOB_BRACE and GLOB_TILDE aren't available.
   11 
   12 	* libnetbsd/snprintf.c: Rename static functions to avoid conflicts
   13 	  with standard names.
   14 
   15 	* libnetbsd/glob.c: Improve glob():
   16 		* Update to NetBSD glob.c 1.38.
   17 		* Switch from a recursive pattern matching algorithm to handle
   18 		  '*' to a backtracking one. Avoids DoS attacks with patterns
   19 		  "a*a*a*a*a*...b" matching against "aaaaaaaaaaaa...".
   20 		  See https://research.swtch.com/glob
   21 		* Bump the glob limits to 512KB for total string size and 64KB
   22 		  path entries. The old limits were too small for some
   23 		  important FTP use cases like a pkgsrc repository.
   24 
   25 	* Remove 3rd (endorsement) clause from my BSD-derived licenses.
   26 
   27 	* configure.ac: Add --with-local-libedit=(yes|auto|no) to control
   28 	  which libedit implementation to use [default auto]:
   29 		  * yes - force local implementation
   30 		  * auto - try system library, fallback to local implementation
   31 		  * no - force system library and fail if not found
   32 
   33 Sat Jul  4 14:51:41 UTC 2020	lukem
   34 
   35 	* Merge NetBSD libedit from 20160131 to 20200704:
   36 		* Fix uninitialized memory access in libedit history. PR/54399
   37 		* Fix out-of-bounds read in libedit c_delbefore. PR/54400
   38 		* Avoid segmentation fault in bad history file. PR/53597
   39 		* Fix crash in history saving. PR/52849
   40 		* Fix crash in c_gets().
   41 		* Fix crash in re_fastputc().
   42 		* Fix crash with backspacing on a long line.
   43 		* Fix patbuf updating.
   44 		* Save and restore errno in signal handler.
   45 		* Fix cursor movement. PR/54654, PR/54329
   46 		* Fix cursor after resize. PR/52359
   47 		* Fix terminal restoration if piped. PR/50863
   48 		* Fix memory leaks.
   49 		* Various UTF-8 fixes.
   50 		* Implementation improvements.
   51 		* Readline compatibility improvements (not used by ftp).
   52 		* <wchar.h> and chartype portability improvements.
   53 		* Remove 4 clause BSD licenses.
   54 		* Default editrc is $EDITRC, falling back to $HOME/.editrc.
   55 		* Add literal escape sequence support, patterned after the
   56 		  tcsh ones.
   57 		* Support pasting multiline buffers.
   58 		* Fix errno / el_errno handling.
   59 		* Improve directory completion in subdirs with only one match.
   60 		* Add support for escaping special characters when doing
   61 		  filename completion.
   62 		* Only quote the completion matches if we are doing filename
   63 		  completion.
   64 		* Don't escape strings with user-supplied completion functions.
   65 		* Grow the buffer for event search if there was not enough
   66 		  space.
   67 		* Use strncpy() or strlcpy() instead of memcpy().
   68 		* (Many fixes were from Ingo Schwarze.)
   69 
   70 	* Merge NetBSD ftp from 20151003 to 20200608:
   71 		* Avoid crashes by exiting if lostpeer due to a signal
   72 		  (e.g., remote server disconnection).
   73 		* Issue PWD commands to the server only when we actually
   74 		  need the results, not speculatively, just in case we might.
   75 		  Works around broken servers, and is quicker too.
   76 		* Fix error reporting when handling TLS connections.
   77 		* Use "anonymous" instead of the local username for anonymous
   78 		  ftp. Avoids unnecesary information leak.
   79 		* Correct format of IPv6 endpoint reporting.
   80 		* Refactoring and build fixes.
   81 		* Support using CONNECT for https:// via proxy.
   82 		  NetBSD PR/50438, PR/51043.
   83 		* Fix downloads of local files using file:// URLs
   84 		* Use the first name we requested the http/https URL for,
   85 		  not any name we ended up with after random redirects.
   86 
   87 Mon Feb  1 10:29:47 UTC 2016	lukem
   88 
   89 	* Merge libedit from NetBSD 20050531 to 20160131.
   90 	  Notable API changes, even if not used by tnftp:
   91 	  - Make el_get varyadic, and implement EL_GETTC.
   92 	  - Add EL_GETFP, and EL_SETFP.
   93 	  - Add EL_REFRESH for the benefit of readline
   94 	  - Document and enable wide character support.
   95 	  - Provide an el_init_fd function.
   96 
   97 	* Reduce differences to upstream in libedit.
   98 
   99 	* configure.ac: remove AC_FUNC_ALLOCA() and AC_TYPE_SIGNAL().
  100 
  101 Sun Jan 31 06:01:43 UTC 2016	lukem
  102 
  103 	* Provide missing vasprintf().
  104 	  Fix from J Raynor via pkgsrc-users.
  105 
  106 Sun Oct  4 06:19:25 UTC 2015	lukem
  107 
  108 	* Release as "tnftp 20151004".
  109 
  110 	* Merge NetBSD usr.bin/ftp from 20141026 to 20151003:
  111 		- Add  -x xferbufsize  to set xferbuf size.
  112 		- Add Server Name Indication (SNI) support for https.
  113 		- Increase buffer limit used for response handling.
  114 
  115 Mon Nov  3 21:43:20 UTC 2014	lukem
  116 
  117 	* Release as "tnftp 20141104".
  118 
  119 Fri Oct 31 08:32:28 UTC 2014	lukem
  120 
  121 	* Use '=' not '==' with test in configure.
  122 
  123 	* Check for <sys/uio.h> for writev() declaration.
  124 
  125 Fri Oct 31 04:07:38 UTC 2014	lukem
  126 
  127 	* Release as "tnftp 20141031".
  128 
  129 	* Merge NetBSD usr.bin/ftp from 20130220 to 20141026:
  130 		- Don't pay attention to special characters if they don't
  131 		  come from the command line (from jmcneill).
  132 		  Fixes CVE-2014-8517.
  133 		- PR/34796: Hauke Fath: ftp does not timeout on http fetches.
  134 
  135 Sun May  5 13:51:47 UTC 2013	lukem
  136 
  137 	* Release as "tnftp 20130505"
  138 	
  139 	* Implement --enable-ssl (and --with-openssl) to enable
  140 	  https:// fetch support.
  141 
  142 	* Merge NetBSD ftp from 20090520 to 20130220.  Changes:
  143 		- https:// support.
  144 		  NetBSD problem report 47276 from NONAKA Kimihiro.
  145 		- Allow -R to restart non-existent ftp:// URIs.
  146 		- Don't assume AF_INET support is available.
  147 		  FreeBSD problem report 162661.
  148 		- Parse HTTP 'Date' entries in the `C' locale rather than the
  149 		  user's.
  150 		  NetBSD problem report 42917 from KAMADA Ken'ichi.
  151 		- Improve error handling when parsing of URI scheme.
  152 		- Silence connection warnings to multi-homed hosts in
  153 		  non-verbose mode.
  154 		- Fix compile warnings.
  155 		- In ftpvis(), prevent incomplete escape sequences at end of
  156 		  dst, and ensure NUL-termination of dst.
  157 		  Fix from Uwe Stuehler and Stefan Sperling, via Marc Balmer.
  158 		- When using the response to SYST to decide whether to
  159 		  default to 'binary' be a lot less specific.
  160 
  161 	* Replace glob with newer copy from NetBSD that does not suffer
  162 	  from DoS exhaustion attacks.
  163 	  Fix in NetBSD from Maksymilian Arciemowicz.  See CVE-2011-0418
  164 
  165 Tue Jan 12 06:58:15 UTC 2010	lukem
  166 
  167 	* Release as "tnftp 20100108"
  168 
  169 	* Rename onoff() argument "bool" to "val".
  170 
  171 Tue Jan  5 09:12:01 UTC 2010	lukem
  172 
  173 	* If ARG_MAX isn't defined, use the result from sysconf(_SC_ARG_MAX).
  174 	  Fixes build when using newer glibc.
  175 
  176 	* Add libnetbsd.la to the LIBADD for libedit.
  177 	  Fix provided by Adam Sampson.
  178 
  179 Mon Jan  4 06:28:07 UTC 2010	lukem
  180 
  181 	* Distribute various files not shipped by default automake rules,
  182 	  to use 'make dist' instead of 'cvs export'.
  183 
  184 Wed Dec 30 00:12:47 UTC 2009	lukem
  185 
  186 	* Release as "tnftp 20091122"
  187 
  188 Sun Nov 15 10:14:44 UTC 2009	lukem
  189 
  190 	* Merge NetBSD ftp from 20090520 to 20090915.  Change:
  191 		- Rename internal getline() to get_line() to avoid
  192 		  conflict with libc with former.
  193 		- Avoid a NULL dereference in an error message.
  194 
  195 Sat Nov 14 09:21:19 UTC 2009	lukem
  196 
  197 	* Convert to automake & libtool.
  198 
  199 Sat Jun  6 07:17:38 UTC 2009	lukem
  200 
  201 	* Release as "tnftp 20090606"
  202 
  203 Fri May 22 01:11:15 UTC 2009	lukem
  204 
  205 	* configure fixes:
  206 	  - Add the time.h headers to accheck_includes, for the strptime check.
  207 	  - Remove the check for el_init in libedit; we're always replacing
  208 	    the library and the presence of strvis() in some versions
  209 	    confuses other checks.
  210 
  211 Wed May 20 13:47:43 UTC 2009	lukem
  212 
  213 	* Release as "tnftp 20090520"
  214 
  215 	* Merge NetBSD ftp from 20070722 to 20090520.  Changes:
  216 	    - Only attempt to el_parse() a command unknown by the default
  217 	      parser if editing is enabled.
  218 	      Fixes PR 38589.
  219 	    - Turn off the alarmtimer before resetting the SIGALRM handler
  220 	      back to SIG_DFL.
  221 	      Fixes PR 35630.
  222 	    - Add epsv6 and epsv to disable extended passive mode for ipv6 or
  223 	      both ipv4 and ipv6 respectively.  This hack is due to our
  224 	      friends a Juniper Networks who break epsv in ipv6.
  225 	      Should be fixed in ScreenOS 6.2.X.
  226 	    - Improve parsing of chunked transfer chunks per RFC2616:
  227 	      - more stringent chunk-size parsing
  228 	      - ignore optional trailing ';chunk-ext' stuff, instead of barfing
  229 	      - detect EOF before final \r\n.
  230 	    - Use the service name to getaddrinfo() (along with the host
  231 	      name), so that features such as DNS Service Discovery have a
  232 	      better chance of working.
  233 	      Display the service name in various status & error messages.
  234 	    - Don't getservbyname() the :port component of a URL; RFC 3986
  235 	      says it's just an unsigned number, not a service name.
  236 	    - Fix numerous WARNS=4 issues (-Wcast-qual -Wsign-compare).
  237 	    - Fix -Wshadow issues
  238 	    - Update copyrights
  239 	    - Remove clause 3 and 4 from TNF licenses
  240 	    - Rename HAVE_STRUCT_SOCKADDR_SA_LEN to
  241 	      HAVE_STRUCT_SOCKADDR_IN_SIN_LEN to accurately reflect the
  242 	      structure member being used.
  243 	    - Use AF_INET instead of AF_UNSPEC as the default family if
  244 	      !defined(INET6).
  245 
  246 	* configure improvements:
  247 	  - Style tweaks.
  248 	  - Use AC_LANG_PROGRAM() instead of AC_LANG_SOURCE()
  249 	  - Add a check for strptime() requiring separators between
  250 	    conversions, and use our replacement one if it does.
  251 
  252 Sat Dec 20 15:28:24 UTC 2008	lukem
  253 
  254 	* configure improvements:
  255 	  - Move IPv6 check from tnftp.h to configure.ac (as per tnftpd).
  256 	  - Rework option descriptions.
  257 	  - Highlight when tests are for a specific option.
  258 	  - Move configuration results to the end of the file.
  259 	  - Display $prefix in configure results.
  260 
  261 Fri Aug 15 03:03:36 UTC 2008	lukem
  262 
  263 	* Add a "Configuration results" display at the end of configure.
  264 	  Cosmetic tweaks.
  265 
  266 Fri Feb 29 09:45:56 UTC 2008	lukem
  267 
  268 	* Support @EXEEXT@ for Cygwin (etc).
  269 
  270 Mon Aug  6 04:55:19 UTC 2007	lukem
  271 
  272 	* Release as "tnftp 20070806"
  273 
  274 	* Add a NEWS file.
  275 
  276 	* Reduce differences between NetBSD-ftp and local copy.
  277 
  278 	* Merge NetBSD ftp from 20070605 to 20070722.
  279 	  Changes:
  280 		- Document about:ftp and about:version.
  281 
  282 	* Add autoconf check for (Dante) SOCKS5.
  283 	  (Needs run-time testing and more portability testing.)
  284 
  285 Mon Jul 23 11:44:42 UTC 2007	lukem
  286 
  287 	* Don't use non-standard: u_char u_short u_int.
  288 	  Use uint32_t instead of u_int32_t.
  289 
  290 	* Consistently use AS_CASE() and AS_IF() in configure.ac.
  291 
  292 	* Don't use defined() with HAVE_DECL_xxx.
  293 	  Use `LL' instead of `L' suffix for fallback
  294 	  defines of LLONG_MIN and LLONG_MAX.
  295 
  296 Sun Jul 22 12:00:17 UTC 2007	lukem
  297 
  298 	* Include <arpa/nameser.h> if available, and provide fallback #defines.
  299 
  300 	* Sync with lib/libc/inet/inet_pton.c 1.3:
  301 		* Sync to bind 9.3.x version
  302 		* Update ISC copyright
  303 		* Fix some lint
  304 
  305 	* Sync with lib/libc/inet/inet_ntop.c 1.3:
  306 		* Sync to bind 9.3.x version
  307 		* Update ISC copyright
  308 		* Use socklen_t instead of size_t
  309 		* Use snprintf() instead of SPRINTF()
  310 		* Improve detection of various boundary conditions
  311 
  312 	* Sync to NetBSD glob.h 1.21, glob.c 1.16:
  313 		* Standards compliance fix
  314 		* De-lint
  315 		* Don't overflow when DEBUG is defined.
  316 
  317         * Sync fgetln.c to tools/compat/fgetln.c 1.7:
  318 		* Clause 3 removal.
  319 
  320 	* Sync to config.guess 2007-07-22, config.sub 2007-06-28.
  321 
  322 	* Consistency tweaks in configure help strings.
  323 
  324 	* Add check for struct sockaddr.sa_len.
  325 	  Change tests for HAVE_foo to defined(HAVE_foo).
  326 	  Replace HAVE_SOCKADDR_SA_LEN with HAVE_STRUCT_SOCKADDR_SA_LEN.
  327 
  328 	* Remove pretence of supporting SOCKS for now;
  329 	  no test system is available, and the old
  330 	  autoconf 2.13 support wasn't upgraded to 2.61.
  331 
  332 	* configure.ac style consistency tweaks.
  333 	  Move autoconf aux files from ./ to build-aux/
  334 
  335 	* Remove duplicate HAVE_STRERROR replacement in tnftp.h.
  336 
  337 Thu Jun  7 04:47:47 UTC 2007	lukem
  338 
  339 	* Merge NetBSD ftp from 20070510 to 20070605.  Changes:
  340 		- Enforce restriction that (http) proxied URL fetchs don't
  341 		  support being restarted at this time.
  342 		  Addresses NetBSD Problem Report 28697.
  343 		- Display times in RFC2822 form rather than using ctime(3),
  344 		  since the former is more explicit about the timezone offset.
  345 		- main: call tzset() to ensure TZ is setup for other <time.h>
  346 		  functions.
  347 		- remotemodtime(): use strptime() to parse the reply.
  348 		- fetch_url(): ensure struct tm is zeroed before calling
  349 		  strptime().
  350 		- Modify parse_url() to consistently strip the leading `/'
  351 		  off ftp URLs.
  352 		  Fixes NetBSD Problem Report 17617.
  353 		- Use 'RFCnnnn' (with leading 0) instead of 'RFC nnnn', to be
  354 		  consistent with the style in the RFC index.
  355 		- Refer to RFC3916 instead of 1738 or 2732.
  356 		- Expand the list of supported RFCs in ftp(1) to contain the
  357 		  document name as well.
  358 
  359 Fri May 11 04:39:55 UTC 2007	lukem
  360 
  361 	* Update INSTALL and COPYING.
  362 
  363 	* Rename HAVE_QUAD_SUPPORT to HAVE_PRINTF_LONG_LONG, and only
  364 	  require support for 'long long' in that check rather than
  365 	  needing sizeof(off_t)>=8, as some systems have a separate
  366 	  off64_t when Large File Support is enabled.
  367 
  368 	* config.guess: treat 'i86xen:SunOS:5.*' as 'i86pc:SunOS:5.*'
  369 
  370 Thu May 10 15:23:33 UTC 2007	lukem
  371 
  372 	* Remove checks for util.h and libutil.h, and replacement for
  373 	  fparseln(), since fparseln() isn't used any more.
  374 
  375 	* Merge NetBSD ftp from 20070418 to 20070510.  Changes:
  376 		- Switch from fparseln() to the internal getline() when
  377 		  parsing HTTP headers.  Makes ftp a bit more portable
  378 		  (not needing fparseln()) at the expense of not supporting
  379 		  arbitrary long header lines, which I'm not concerned about
  380 		  because we don't support header line continuation either...
  381 		- Replace references from draft-ietf-ftpext-mlst-NN to RFC 3659.
  382 		- Fix misplaced const.
  383 		- Implement copy_bytes() to copy bytes from one fd to another
  384 		  via the provided buffer, with optional rate-limiting and
  385 		  hash-mark printing, using one loop and handle short writes.
  386 		  Refactor sendrequest() and recvrequest() to use copy_data().
  387 		  Addresses NetBSD Problem Report 15943.
  388 
  389 Wed May  9 05:24:55 UTC 2007	lukem
  390 
  391 	* Fix typo in poll()-based implementation of usleep() replacement.
  392 
  393 Wed May  9 04:58:50 UTC 2007	lukem
  394 
  395 	* Rename configure.in to configure.ac, as the latter is the
  396 	  preferred name in autoconf 2.61.
  397 
  398 	* Convert from autoconf 2.13 to 2.61:
  399 	  * Use a consistent quoting mechanism.
  400 	  * Use modern autoconf macros, #define names, etc.
  401 	  * Search for more header files, and only #include if found.
  402 	  * Remove old-style config.h.in generation.
  403 	  This may fix various tests on platforms such as FreeBSD and OS X.
  404 
  405 	* Add -Wl,-search_paths_first to LDFLAGS on OS X (Darwin) if the
  406 	  linker supports it.  This is needed so we use our libedit
  407 	  rather than the system one.
  408 
  409 	XXX: SOCKS support is currently disabled until I update the
  410 	     autoconf support.
  411 
  412 Mon Apr 23 06:04:26 UTC 2007	lukem
  413 
  414 	* Merge NetBSD ftp from 20050610 to 20070418.  Changes:
  415 		- Add '-s srcaddr'.
  416 		- Use IEC 60027-2 2^N based "KiB", "MiB" (etc) instead of
  417 		  10^n "KB", "MB", ...
  418 		- Recognize 307 redirect code.
  419 		- Suppress printing non-COMPLETE reply strings when EPSV/EPRT
  420 		  fails and we fall-back to PASV/PORT.  Should fix a problem
  421 		  with the emacs ftp wrapper.
  422 		- Fix display of 'Continue with <cmd>' messages.
  423 		- Prevent segfaults in .netrc parsing.
  424 		- Flush stdout before each command; ftp as slave process on
  425 		  a pipe should work.
  426 		- getpass() can return NULL in some implementations; cope.
  427 		- Support '-q quittime' when waiting for server replies.
  428 		- Various spelling & grammatical fixes in the manual.
  429 		- Plug some memory leaks.
  430 		- If a file upload (via -u) fails, return an non-zero exit
  431 		  value based on the index of the file that caused the
  432 		  problem (a la auto-fetch retrieval).
  433 		- Coverity fixes for CIDs: 873 874 875 1447 1448 2194 2195 3610
  434 		- Don't remove trailing character during auth_url()
  435 		- Fix progressbar display on narrow terminals (<43 columns)
  436 
  437 Fri Mar 16 06:00:14 UTC 2007	lukem
  438 
  439 	* Change the return value of the replacement gai_strerror()
  440 	  from "char *" to "const char *", to match the current
  441 	  standards.
  442 	  Problem noted by Thomas Klausner.
  443 
  444 Thu Oct 26 07:24:22 UTC 2006	lukem
  445 
  446 	* Correctly parse "AM" and "PM" in the replacement strptime().
  447 	  Problem noted by Kathryn Hogg.
  448 
  449 Sat Jun 25 06:27:00 UTC 2005	lukem
  450 
  451 	* Release as "tnftp 20050625"
  452 
  453 	* Simplify the detection & replacement of dirname() and fparseln()
  454 	  and just use AC_REPLACE_FUNCS.
  455 	  (We don't care if the vendor has a working version in -lgen or -lutil
  456 	  instead of -lc; they'll get our replacement version in that case).
  457 	  Fixes build issue on older Darwin where the previous autoconf check
  458 	  wouldn't find dirname() in the default system libraries.
  459 
  460 	* Only provide a prototype for dirname() if we can't find one in
  461 	  <libgen.h>
  462 
  463 	* Search for NS_IN6ADDRSZ instead of IN6ADDRSZ, since we use the
  464 	  former and not the latter and older Darwin has the former.
  465 	  (This allows INET6 support to be enabled on Darwin 7.9.0)
  466 
  467 Mon Jun 13 09:22:13 UTC 2005	lukem
  468 
  469 	* Tweak SOCKS5 support:
  470 	    acconfig.h:
  471 		- fix a comment
  472 		- ensure close() is replaced
  473 		- list entries in the same order as aclocal.m4
  474 		  (and the SOCKS5 FAQ)
  475 	    aclocal.m4:
  476 		- ensure getpeername() is replaced
  477 		- don't replace listen() twice
  478 
  479 Fri Jun 10 04:39:33 UTC 2005	lukem
  480 
  481 	* Release as "tnftp 20050610"
  482 
  483 	* Add dependencies on ${srcdir}/../tnftp.h and ../config.h
  484 
  485 	* Merge NetBSD ftp from 20050609 to 20050610.  Changes:
  486 		- Implement getline() to read a line into a buffer.
  487 		- Convert to use getline() instead of fgets() whenever reading
  488 		  user input to ensure that an overly long input line doesn't
  489 		  leave excess characters for the next input operation to
  490 		  accidentally use as input.
  491 		- Zero out the password & account after we've finished with it.
  492 		- Consistently use getpass(3) (i.e, character echo suppressed)
  493 		  when reading the account data.  For some reason, historically
  494 		  the "login" code suppressed echo for Account: yet the "user"
  495 		  command did not!
  496 		- Display the hostname in the "getaddrinfo failed" warning.
  497 		- Appease some -Wcast-qual warnings.  Fixing all of these
  498 		  requires significant code refactoring.  (mmm, legacy code).
  499 
  500 Thu Jun  9 16:49:05 UTC 2005	lukem
  501 
  502 	* src, libnetbsd: Excise RCSID block, rather than using
  503 	  #if 0 ...  #endif.  The point was to minimise RCSID
  504 	  conflicts, and the latter isn't helping there.
  505 
  506 	* Merge NetBSD ftp from 20050531 to 20050609.  Changes:
  507 		- Only print the "Trying <address>..." message if verbose
  508 		  and there's more than one struct addrinfo in the
  509 		  getaddrinfo() result.
  510 		- Don't use non-standard "u_int".
  511 
  512 Wed Jun  1 15:08:01 UTC 2005	lukem
  513 
  514 	* Look for dirname(3), which may be in -lgen on IRIX, and
  515 	  replace it if not found..
  516 
  517 Wed Jun  1 11:48:58 UTC 2005	lukem
  518 
  519 	* libnetbsd:
  520 		- Don't use non-standard: u_char u_short u_int.
  521 		- Use uint32_t instead of u_int32_t.
  522 		- Don't use register.
  523 
  524 	* libedit: Don't use non-standard uint or u_int.
  525 
  526 Tue May 31 02:23:08 UTC 2005	lukem
  527 
  528 	* tnftp.h: need <libgen.h> for dirname(3)
  529 
  530 	* Merge ftp from 20050513 to 20050531.  Changes:
  531 		- Helps if the definition of xconnect() matches its
  532 		  declaration....
  533 		- Fix some cast issues highlighted by Scott Reynolds using
  534 		  gcc 4 on OSX.4
  535 		- Use size_t instead of int where appropriate.
  536 		- Make this compile on sparc64 (size_t != int).
  537 		- Printf field widths and size_t don't always mix well, so
  538 		  cast to int.  Fixes build problem for alpha.
  539 		- Some const cleanups.
  540 		- tab cleanup
  541 		- Improve method used in fileindir() to determine if `file'
  542 		  is in or under `dir': realpath(3) on non-NetBSD systems may
  543 		  fail if the target filename doesn't exist, so instead use
  544 		  realpath(3) on the parent directory of `file'.
  545 		  Per discussion with Todd Eigenschink.
  546 		- formatbuf(): fix %m and %M to use the hostname, not the
  547 		  username.
  548 		- fetch_ftp(): preserve 'anonftp' across a disconnect() so
  549 		  that multiple ftp auto-fetches on the same command line
  550 		  login automatically.
  551 		- auto_fetch(): use an initialized volatile int to appease
  552 		  IRIX cc.
  553 
  554 	* Merge libedit from NetBSD 20050105 to 20050531.  Changes include:
  555 		- Rui Paulo: Incorrect tok_line and tok_str declarations.
  556 		- Remove clause 3 from the UCB license.
  557 		- Luke Mewburn: Don't abuse unconstify'ing a string
  558 		  and writing to it, because you'll core dump. Also remove
  559 		  extra const that gives pain to the irix compiler.
  560 		- Make sure we flush after we prepare when we are unbuffered
  561 		  otherwise the prompt will not appear immediately.
  562 		- Terminate the arglist with a NULL instead of 0.
  563 		  (Shuts up gcc4.x)
  564 
  565 Sat May 28 13:19:38 UTC 2005	lukem
  566 
  567 	* libnetbsd/strvis.c:
  568 		- Sync to NetBSD's vis.c 1.33:
  569 		  Use malloc(3) instead of alloca(3).
  570 		- Remove extraenous #endif
  571 
  572 Fri May 27 05:46:58 UTC 2005	lukem
  573 
  574 	* libnetbsd/strvis.c: Sync to NetBSD's vis.c 1.30:
  575 	  Use a more standard TNF license.
  576 
  577 	* libedit/sig.c: Include "src/progressbar.h" for xsignal_restart()
  578 	  prototype.
  579 
  580 	* Ensure that fallback #define of __attribute__ is available.
  581 	  Fixes build problem on HP-UX with cc.
  582 
  583 Thu May 26 14:21:08 UTC 2005	lukem
  584 
  585 	* Extend xpoll()'s HAVE_SELECT implementation to support POLLRDNORM,
  586 	  POLLWRNORM, and POLLRDBAND - the latter using exceptfds.
  587 	  Per discussion with Christos Zoulas.
  588 
  589 Mon May 16 13:33:27 UTC 2005	lukem
  590 
  591 	* Pull in <poll.h> or <sys/poll.h> if they exist even if we're
  592 	  not using poll, as struct pollfd might exist in those.
  593 	  Fixes build problem on OSX.3.
  594 
  595 	* Separate CPPFLAGS from CFLAGS.
  596 
  597 	* Sync various files in libnetbsd with the original versions
  598 	  in NetBSD.  Notable changes
  599 		- Convert 4 clause UCB license to 3 clause.
  600 		- Use strlcpy instead of strcpy.
  601 		- Update ISC copyright.
  602 		- Use NS_INADDRSZ, NS_IN6ADDRSZ and NS_INT16SZ instead of
  603 		  equivalents without NS_ prefix.
  604 		- Use socklen_t instead of size_t where appropriate.
  605 		- Improve bounds checking.
  606 		- Don't update the size of allocated storage until
  607 		  realloc succeeds.
  608 		- Fix comment about return value.
  609 		- Reverse the order of two loop invariant to make
  610 		  'strlcat(0, "foo", 0)' not get a SEGV.
  611 		- Use Todd C. Miller's latest copyright notice (more loose).
  612 		- Use "long long" instead of "quad" in various
  613 		  comments & constants.
  614 		- Support VIS_HTTPSTYLE.
  615 		- Implement svis(), strsvis(), strsvisx(), strunvisx().
  616 
  617 	* Prefer poll over select when implementing replacement usleep().
  618 
  619 Sat May 14 04:44:35 UTC 2005	lukem
  620 
  621 	* Release "tnftp 20050514"
  622 
  623 	* Fail if we can't find a library with tgetent (needed for libedit).
  624 	  NetBSD PR pkg/28925.
  625 
  626 	* Improve quoting when using various autoconf macros.
  627 
  628 	* Merge NetBSD-ftp 20050513:
  629 		- Correct the "optlen" argument passed to getsockopt(3) and
  630 		  setsockopt(3) in various places.  Fixes a problem noted by
  631 		  Allen Briggs.
  632 		- Improve warning printed when connect(2) for the data
  633 		  channel fails.
  634 
  635 Wed May 11 04:19:43 UTC 2005	lukem
  636 
  637 	* Release "tnftp 20050511"
  638 
  639 Wed May 11 04:10:01 UTC 2005	lukem
  640 
  641 	* Update the THANKS file.
  642 
  643 	* Only use poll() to implement xpoll() if it's available,
  644 	  otherwise attempt to use select() if that's available,
  645 	  otherwise #error.
  646 
  647 	* Detect if struct pollfd is available in <poll.h> or <sys/poll.h>.
  648 	  Improve consistency in use of autoconf macros.
  649 
  650 Wed May 11 02:42:08 UTC 2005	lukem
  651 
  652 	* Merge NetBSD-ftp 20050511:
  653 		- Use socklen_t instead of int as the 5th argument to
  654 		  getsockopt().  Improve invocation of setsockopt() and
  655 		  associated failure messages.
  656 
  657 Wed May 11 01:46:29 UTC 2005	lukem
  658 
  659 	* Clean up RCSID usage in vendor-derived code, restoring original
  660 	  IDs where possible.
  661 
  662 Wed May 11 00:08:16 UTC 2005	lukem
  663 
  664 	* Merge NetBSD-ftp 20050510:
  665 		- Prevent an overly-long input line causing a core dump when
  666 		  editing is enabled.
  667 		  Issue noted by Ryoji Kanai in FreeBSD Problem Report # 77158.
  668 		- Implement a timeout on the accept(2) in dataconn() and the
  669 		  connect(2) in xconnect() by temporarily setting O_NONBLOCK
  670 		  on the socket and using xpoll() to wait for the operation
  671 		  to succeed.  The timeout used is the '-q quittime' argument
  672 		  (defaults to 60s for accept(2), and the system default for
  673 		  connect(2)).  Idea inspired by discussion with Chuck Cranor.
  674 		  This may (indirectly) fix various problems with timeouts in
  675 		  active mode through broken firewalls.
  676 		- Implement xpoll() as a wrapper around poll(2), to make it
  677 		  easier to replace on systems without a functional poll(2).
  678 		  Unconditionally use xpoll() instead of conditionally using
  679 		  select(2) or poll(2).
  680 		- In fetch_url(), don't call freeaddrinfo(res0) too early, as
  681 		  we use pointers to its contents later in the function.
  682 		  Problem found by Onno van der Linden.
  683 		- Fix ftp url reget when globs are being used.
  684 		  Provided by Mathieu Arnold <mat@FreeBSD.org>.
  685 		- Factor out common string processing code eliminating static
  686 		  buffers, making functions that should be static be static,
  687 		  and cleaning up const usage. Added a guard against buffer
  688 		  overflow, but the domap function is a bit too complicated
  689 		  to tackle right now.
  690 		- Clean up whitespace.
  691 		- Expand description of http_proxy by suggesting the use of
  692 		  RFC 1738 '%xx' encoding for "unsafe URL" characters in
  693 		  usernames and passwords.
  694 
  695 Wed Jan  5 05:53:59 UTC 2005	lukem
  696 
  697 	* For now, assume libedit is not up-to-date and use our own version.
  698 
  699 	* Merge libedit from NetBSD 20020605 to 20050105.  Changes include:
  700 		- Improve vi-mode.
  701 		- Delete-previous-char and delete-next-char without an
  702 		  argument are not supposed to modify the yank buffer in
  703 		  emacs-mode.
  704 		- Improve incremental searching.
  705 		- Improve memory allocation & usage.
  706 		- Move UCB-licensed code from 4-clause to 3-clause.
  707 		- Make the tokenization functions publically available.
  708 		- Various tty access bug-fixes.
  709 		- Improve readline emulation.
  710 
  711 Tue Jan  4 13:33:40 UTC 2005	lukem
  712 
  713 	* Unixware 7.1.1 implements RFC 2133 (Basic Socket Interface
  714 	  Extensions for IPv6) but not the successor RFC 2553. The configure
  715 	  script detects this and decides that tnftp needs to compile its own
  716 	  version of getaddrinfo().  This produces the error message
  717 	    /usr/include/netdb.h:248: `getaddrinfo' previously defined here
  718 	  because Unixware provides an implementation of getaddrinfo() in
  719 	  netdb.h instead of a prototype declaration :-/. Since netdb.h
  720 	  cannot be omitted, we will always get this definition and tnftp's
  721 	  version of getaddrinfo will always create a conflict.  This ugly
  722 	  preprocessor hack works around the problem. Hints for a better
  723 	  solution welcome.  Fix from pkgsrc/net/tnftp.
  724 
  725 	* Workaround poll() being a compatibility function on Darwin 7
  726 	  (MacOSX 10.3) by adding a custom test for _POLL_EMUL_H_ which
  727 	  is defined in poll.h on some MacOSX 10.3 systems.  Not all 10.3
  728 	  systems have poll.h, so only do the poll() test if at least one
  729 	  of the header files is found.  Fix from pkgsrc/net/tnftp.
  730 
  731 	* Add a utimes() replacement (using utime()) for Interix.
  732 	  From pkgsrc/net/tnftp.
  733 
  734 Mon Jan  3 10:21:57 UTC 2005	lukem
  735 
  736 	* Release "tnftp 20050103"
  737 
  738 	* Merge NetBSD-ftp 20050103:
  739 		- Forbid filenames returned from mget that aren't in (or below)
  740 		  the current directory.  The previous behaviour (of trusting
  741 		  the remote server's response when retrieving the list of
  742 		  files to mget with prompting disabled) has been in ftp
  743 		  ~forever, and has been a "known issue" for a long time.
  744 		  Recently an advisory was published by D.J. Bernstein on
  745 		  behalf of Yosef Klein warning of the problems with the
  746 		  previous behaviour, so to alleviate concern I've fixed
  747 		  this with a sledgehammer.
  748 		- Remember the local cwd after any operation which may
  749 		  change it.
  750 		- Use "remotecwd" instead of "remotepwd".
  751 		- Add (unsigned char) cast to ctype functions
  752 		- Ensure that "mname" is set in ls() and mls() so that an
  753 		  aborted confirm() prints the correct name.
  754 		  Problem highlighted & suggested fix from PR [bin/17766]
  755 		  by Steve McClellan.
  756 		- If an ftp auto-fetch transfer is interrupted by SIGINT
  757 		  (usually ^C), exit with 130 instead of 1 (or rarely, 0).
  758 		  This allows an ftp auto-fetch in a shell loop to correctly
  759 		  terminate the loop.
  760 		  Should fix PR [pkg/26351], and possibly others.
  761 		- Save approximately 8K by not including http authentication,
  762 		  extended status messages and help strings when the
  763 		  appropriate options are set.
  764 		- Move UCB-licensed code from 4-clause to 3-clause licence.
  765 		  Patches provided by Joel Baker in PR 22365, verified by
  766 		  Alistair Crooks.
  767 		- Always decode %xx in a url's user & pass components.
  768 		- Only remember {WWW,Proxy}-Authenticate "Basic" challenges; no
  769 		  point in tracking any others since ftp doesn't support them.
  770 		- Improve the parsing of HTTP responses.
  771 		- Don't base64 encode the trailing NUL in the HTTP basic auth
  772 		  response.  Problem noted by Eric Haszlakiewicz.
  773 		- Improve parsing of HTTP response headers to be more RFC2616
  774 		  compliant, and skip LWS (linear white space; CR, LF, space,
  775 		  tab) and the end of lines and between the field name and
  776 		  the field value.  This still isn't 100% compliant, since we
  777 		  don't support "multi line" responses at this time.
  778 		  This should fix PR [bin/22611] from TAMURA Kent (although I
  779 		  can't easily find a http server to reproduce the problem
  780 		  against.)
  781 		- Fix a minor memory leak when parsing HTTP response headers.
  782 		- Don't unnecessarily display a 401/407 error when running
  783 		  with -V.  Fix from PR [bin/18535] by Jeremy Reed.
  784 		- Don't warn about "ignored setsockopt" failures unless
  785 		  debugging is enabled.  Suggested by Todd Vierling.
  786 		- Allow empty passwords in ftp://user:@host/file auto-fetch
  787 		  URLs, per RFC 1738.  Requested by Simon Poole.
  788 		- correct URL syntax in comment
  789 		- Note potentially surprising file-saving behaviour in case
  790 		  of HTTP redirects
  791 		- -n is ignored for auto-fetch transfers
  792 		- If connect(2) in xconnect() fails with EINTR, call select(2)
  793 		  on the socket until it's writable or it fails with something
  794 		  other than EINTR.  This matches the behaviour in SUSv3, and
  795 		  prevents the problem when pressing ^T (SIGINFO, which is
  796 		  marked as restartable) during connection setup would cause
  797 		  ftp to fail with EADDRINUSE or EALREADY when the second
  798 		  connect(2) was attempted on the same socket.  Problem found
  799 		  and solution provided by Maxime Henrion <mux@freebsd.org>.
  800 		- Add -q to usage. From Kouichirou Hiratsuka in PR 26199.
  801 		- PR/25566: Anders Magnusson: ftp(1) do not like large TCP
  802 		  windows.  Limit it to 8M.
  803 
  804 Mon Oct  6 01:23:03 UTC 2003	lukem
  805 
  806 	* configure.in improvements:
  807 		- When testing for IN6ADDRSZ in <arpa/nameser.h>, pull in
  808 		  <sys/types.h> first.  From Stoned Elipot <seb @ NetBSD>
  809 		- Whitespace cleanup
  810 
  811 Mon Aug 25 11:45:45 UTC 2003	lukem
  812 
  813 	* Release "tnftp 20030825"
  814 
  815 	* Add autoconf test for <sys/syslimits.h>; Cygwin needs it for ARG_MAX.
  816 	  Per discussion with Eugene Kotlyarov <ekot@protek36.esoo.ru>.
  817 
  818 Thu Jul 31 07:30:00 UTC 2003	lukem
  819 
  820 	* release "tnftp 20030731"
  821 
  822 	* merge ftp from NetBSD 20030731 to 20030731b:
  823 		- Work around broken ftp servers (notably ProFTPd) that can't
  824 		  even follow RFC 2389, and skip any amount of whitespace
  825 		  before a FEATure response.  The RFC says 'single space' yet
  826 		  ProFTPd puts two.  Noted by DervishD <raul@pleyades.net>.
  827 		- Improve formatting of features[] debug dump.
  828 		- Invalidate remote directory completion cache if any command
  829 		  which may change the remote contents completes successfully,
  830 		  including: del, mdel, ren, mkdir, rmdir, quote, and all
  831 		  upload commands.  Patch from Yar Tikhiy <yar@freebsd.org>.
  832 
  833 	* merge ftp from NetBSD 20030228 to 20030731:
  834 		- $FTPUSERAGENT overrides the HTTP User-Agent header.
  835 		  Based on patch from Douwe Kiela <virtus@wanadoo.nl>.
  836 		- Add about:tnftp
  837 		- Fix URL in about:netbsd
  838 		- netbsd.org->NetBSD.org
  839 		- strlcpy fix in fetch.c
  840 		- Uppercase "URL"
  841 		- fix a bogus error message when given a HTTP URL with a
  842 		  trailing slash
  843 		- groff fixes in man page
  844 		- tweak progressbar.c copyright; the stuff jason did in util.c
  845 		  wasn't migrated to this file
  846 		- Don't coredump when printing '%n' in the prompt if there's
  847 		  no username yet.
  848 		  Fix from Maxim Konovalov <maxim@freebsd.org>
  849 
  850 	* Add test for HAVE_IN6ADDRSZ (which older Darwin is lacking),
  851 	  and only enable INET6 if it exists.
  852 	  Patch from Amitai Schlair <schmonz@schmonz.com>.
  853 
  854 	* Improve ipv6 check for older linux systems that don't provide
  855 	  sin6_scope_id.
  856 	  Patch from YAMANO Yuji <Yamano_Yuji@tk-bay.ogis-ri.co.jp>.
  857 
  858 Fri Feb 28 10:57:30 UTC 2003	lukem
  859 
  860 	* tagged as "tnftp 2.0 beta1"
  861 
  862 Fri Feb 28 10:07:07 UTC 2003	lukem
  863 
  864 	* renamed to `tnftp' (from `lukemftp')
  865 
  866 	* renamed `libukem' to `libnetbsd'
  867 
  868 
  869 Mon Jun 17 06:50:13 UTC 2002	lukem
  870 
  871 	* #if USE_GLOB_H, use <glob.h> instead of "ftpglob.h".
  872 	  Requested by Mike Heffner <mikeh@freebsd.org>
  873 
  874 Mon Jun 10 08:12:35 UTC 2002	lukem
  875 
  876 	* crank FTP_VERSION from 1.6-beta1 to 1.6-beta2
  877 
  878 	* replace missing fseeko(), with a wrapper to fseek() which
  879 	  checks that the offset isn't > LONG_MAX
  880 
  881 	* #include <regex.h> #if HAVE_REGEX_H
  882 
  883 Mon Jun 10 01:27:46 UTC 2002	lukem
  884 
  885 	* check for and replace sa_family_t definition
  886 
  887 	* don't bother checking for issetugid(); it was only used in the
  888 	  internal libedit to prevent $HOME/.editrc from being used if
  889 	  running set-id, and the newer libedit code wouldn't even read
  890 	  $HOME/.editrc if issetugid() wasn't available.  as many target
  891 	  operating systems don't have issetugid(), and lukemftp isn't
  892 	  likely to be run set-id (and $HOME/.netrc is used in any case),
  893 	  the issetugid() check has been disabled in libedit.
  894 
  895 	* add back cpp code which #defines REGEX #if HAVE_REGEX_H
  896 
  897 Wed Jun  5 14:39:11 UTC 2002	lukem
  898 
  899 	* crank FTP_VERSION from 1.6alpha1 to 1.6-beta1
  900 
  901 	* implement replacement setprogname()
  902 
  903 	* use getprogname() instead of __progname
  904 
  905 	* convert to christos' replacement fgetln(), as it's better than mine
  906 
  907 	* merge ftp from NetBSD 20020605 to 20020606:
  908 		- use setprogname()
  909 		- only support -6 if INET6 is defined
  910 
  911 Wed Jun  5 13:08:25 UTC 2002	lukem
  912 
  913 	* don't bother checking if <glob.h> is usable (see below).
  914 
  915 	* always compile in local glob; it's the best way to ensure that
  916 	  various security issues are fixed
  917 
  918 	* update libukem/glob.c from NetBSD's __glob13.c rev 1.22 and rev 1.23
  919 
  920 	* merge libedit from NetBSD 20010413 to 20020606:
  921 		- constify; passes all gcc and lint strict checks.
  922 		- add config.h [Jason Evans], to create a portable version of
  923 		  libedit that can be easily compiled on other OS's.
  924 		- PR/12963:Jason Waterman: Fix signed cast problems.
  925 		- Fixed an __P remnant
  926 		- Close quoting.
  927 		- Generate <>& symbolically.
  928 		- Punctuation and whitespace nits, fix a typo.
  929 		- PR/14188: Anthony Mallet: Provide an opaque data
  930 		  pointer to client programs.
  931 		- a couple of minor fixes.  originally by Ruslan Ermilov
  932 		  <ru@FreeBSD.org>, highlighted to me by way of Mike Barcroft
  933 		  <mike@FreeBSD.org> (thanks!)
  934 		- PR/14067: Anthony Mallet: Provide a programmatic way
  935 		  to set the read_char function via a new el_set() operation.
  936 		  Thanks, nicely done :-)
  937 		- `existent', not `existant'
  938 		- Don't use HAVE_ yet.
  939 		- Fix a warning.
  940 		- Remove an unused variable.
  941 		- If term_init() fails, cleanup and return NULL. This
  942 		  avoids other lossage.  Pointed by charles.
  943 		- va_{start,end} audit: Make sure that each va_start has one
  944 		  and only one matching va_end, especially in error cases.
  945 		  If the va_list is used multiple times, do multiple
  946 		  va_starts/va_ends.  If a function gets va_list as argument,
  947 		  don't let it use va_end (since it's the callers
  948 		  responsibility).  Improved by comments from enami and
  949 		  christos -- thanks!
  950 		- history_def_enter: fix off-by-one mistake in delete
  951 		  condition (the behaviour to keep at least one entry on the
  952 		  history list is retained). This fixes lib/9704 by Phil Nelson.
  953 
  954 	* merge ftp from NetBSD 20020524 to 20020605:
  955 		- when showing the final progress bar, replace "00:00 ETA"
  956 		  with the elapsed time.  (suggested by simonb)
  957 		- actually display transfer stats after a URL fetch.
  958 		  (bug introduced a *long* time ago)
  959 		- update copyright & version
  960 
  961 	* merge ftp from NetBSD 20001127 to 20020524:
  962 		- Use "r+" instead of "r+w", since the latter is not standard.
  963 		  Noted by <Steve.McClellan@radisys.com> in private email.
  964 		- Only send port number in HTTP/1.1 Host: request if port !=
  965 		  80.  Fixes [bin/15415] from Takahiro Kambe
  966 		  <taca@sky.yamashina.kyoto.jp>
  967 		- Fix bad mode passed by mls() to recvrequest().  Fixes
  968 		  [bin/16642] from <steve.mcclellan@radisys.com>
  969 		- update copyrights
  970 		- minor knf
  971 		- invoke cmdtab.c_handler()s with argv[0] == c_name instead
  972 		  of the supplied name. that way the full (unambiguous) name
  973 		  is displayed in error messages and usage strings.
  974 		- line2 may overrun if line is too long (> 200).  be more
  975 		  careful on strcpy.
  976 		- Handle URLs without files correctly (e.g, when using '-o -').
  977 		  Fix from Anders Dinsen <anders@dinsen.net> in [bin/13768]
  978 		- portnum is unsigned, use %u instead of %d
  979 		- Add -4 to force IPv4 and -6 to force IPv6 address usage.
  980 		  From Hajimu UMEMOTO, via Mike Heffner of FreeBSD.
  981 		- use u_char instead of char in base64_encode().
  982 		  problem noticed by Jorgen Lundman in private mail.
  983 		- don't make broken file with -R option.
  984 		- handle "*" in Content-Range properly.
  985 		- If no_proxy condition is true && urltype == FTP_URL_T,
  986 		  use fetch_ftp to retrieve
  987 		- convert to use getprogname()
  988 		- Fix description for "form", "mode", and "struct" commands.
  989 		  Inspired by [bin/16736] from Steve McClellan
  990 		  <steve.mcclellan@radisys.com>
  991 		- Generate <>& symbolically. I'm avoiding .../dist/...
  992 		  directories for now.
  993 		- Punctuation nits.
  994 		- Whitespace cleanup.
  995 		- put "site" in alphabetical order. noted by Mike Barcroft
  996 		  in private email
  997 		- avoid buffer overrun on PASV from malicious server.
  998 		- Large file ASCII mode support by using fseeko()
  999 		  instead of fseek().  From Andrey A. Chernov of FreeBSD,
 1000 		  via Mike Heffner.
 1001 		- Deal with const'ification if el_parse().
 1002 		- call setlocale() on startup
 1003 		- display a limited progress bar (containing bytes xferred
 1004 		  and xfer rate) when the file size is unknown
 1005 		- disable progress bar during remglob()
 1006 
 1007 Thu Mar 14 05:41:49 UTC 2002	lukem
 1008 
 1009 	* ensure all AF_INET6 use is protected with #ifdef INET6
 1010 
 1011 	* remove unnecessary __attribute__ goop
 1012 
 1013 	* libukem/snprintf.c: fix compile errors with gcc 3.x
 1014 
 1015 Tue Apr 17 08:07:29 UTC 2001	lukem
 1016 
 1017 	* autoconf check for %q long long support in *printf()
 1018 	  (instead of %ll), define and use HAVE_PRINTF_QD if so
 1019 
 1020 	* ipv6 isn't compatible with socks, so disable the former
 1021 
 1022 	* look for <libutil.h> (instead of <util.h>) and <arpa/nameser.h>
 1023 
 1024 	* don't check for fparseln() twice
 1025 
 1026 	* fix getaddrinfo() checks
 1027 
 1028 	* crank FTP_VERSION from 1.5 to 1.6alpha1
 1029 
 1030 	* always ensure _PATH_BSHELL and _PATH_TMP are defined
 1031 
 1032 	* prototype inet_pton() if its missing
 1033 
 1034 	* don't bother trying to use if_indextoname() in ip6_sa2str()
 1035 	  (fixes problems on MacOS X)
 1036 
 1037 	* in inet_pton(), pull in <arpa/nameser.h> for IN6ADDRSZ and INT16SZ,
 1038 	  and define if missing
 1039 
 1040 Fri Apr 13 15:24:44 UTC 2001	lukem
 1041 
 1042 	* only include <arpa/nameser.h> if we have it
 1043 
 1044 	* update glob(3) to netbsd-current (20010329), adding support
 1045 	  for GLOB_LIMIT and fixing various buffer overflows.
 1046 
 1047 	* update editline from NetBSD 20000915 -> NetBSD 20010413
 1048 		- Enlarge editline buffers as needed to support arbitrary
 1049 		  length lines.  This also addresses lib/9712 by Phil Nelson.
 1050 		- consistently check for allocation failures and return -1,
 1051 		  if we could not get more memory.
 1052 		- add support for home and end keys.
 1053 		- improve debugging support
 1054 		- el_line_t: make 'limit' const
 1055 
 1056 Mon Nov 27 23:23:40 EST 2000	lukem
 1057 
 1058 	* merge ftp from NetBSD-current (20001127):
 1059 		- implement "mreget"; as per "mget" but uses "reget" instead
 1060 		  of "get"
 1061 		- add -N netrc and $NETRC, as methods to select an alternative
 1062 		  .netrc file
 1063 		- cache local user name and home directory for further use
 1064 		- in mget(), use docase() instead of a local version to do
 1065 		  the case conversion.
 1066 		- format string cleanups
 1067 		- be more explicit that $ftp_proxy and $http_proxy are not
 1068 		  supported for interactive sessions
 1069 		- cope with 2553bis getnameinfo (always attach scope id)
 1070 		  getnameinfo error check.
 1071 		- use NI_MAXHOST with getnameinfo.  we can assume presence of
 1072 		  getnameinfo.
 1073 
 1074 Tue Nov  7 00:16:23 EST 2000	lukem
 1075 
 1076 	* libukem/snprintf.c had a non-functional `%s' due to a
 1077 	  function declaration mismatch.  problem found and fixed
 1078 	  by Hubert Feyrer <hubert@feyrer.de>
 1079 
 1080 Wed Oct 11 14:06:19 EST 2000	lukem
 1081 
 1082 	* released version 1.5
 1083 
 1084 Tue Oct  3 10:22:36 EST 2000	lukem
 1085 
 1086 	* crank to version 1.5 beta6
 1087 
 1088 	* merge ftp from NetBSD-current (20001003)
 1089 		- explicitly use SOCK_STREAM with socket() instead of
 1090 		  res->ai_socktype, because it appears that linux with glibc
 1091 		  doesn't set the latter correctly after one of getaddrinfo()
 1092 		  or getnameinfo().
 1093 		- clarify that $ftp_proxy only works for full URLs and can't
 1094 		  be used for interactive connections.
 1095 
 1096 Mon Sep 25 21:52:12 EST 2000	lukem
 1097 
 1098 	* crank to version 1.5 beta5
 1099 
 1100 Sun Sep 24 13:31:19 EST 2000	lukem
 1101 
 1102 	* merge ftp from NetBSD-current (20000924)
 1103 		- since everything else here uses ANSI C, we might as well
 1104 		  replace __STRING() with the ANSI C stringization stuff...
 1105 		- base64_encode should be static. picked up by hp/ux(!)
 1106 		  compiler
 1107 		- It appears that whilst Apache 1.3.9 incorrectly puts a
 1108 		  trailing space after the chunksize (before the \r\n),
 1109 		  Apache 1.3.11 puts *multiple* trailing spaces after the
 1110 		  chunksize. I 'm fairly certain that this is contrary to
 1111 		  RFC 2068 section 3.6, but whatever...
 1112 		  Found by David Brownlee <abs@mono.org>
 1113 		- always include <netdb.h>, not just when INET6 is defined.
 1114 		  resolves PR [bin/10970] by Richard Earnshaw
 1115 		  <rearnsha@cambridge.arm.com>>
 1116 		- in progressmeter() perform the check for foregroundproc() a
 1117 		  little earlier
 1118 		- removed unused variable `items' in list_vertical()
 1119 
 1120 Sat Sep 23 15:43:34 EST 2000	lukem
 1121 
 1122 	* remove unused sverrno in warnx() and errx()
 1123 
 1124 	* remove unused h_error in getnameinfo()
 1125 
 1126 	* in getaddrinfo(), don't bother declaring in6_addrany[] and
 1127 	  in6_loopback #ifndef INET6
 1128 
 1129 Thu Sep 21 11:26:35 EST 2000	lukem
 1130 
 1131 	* in getaddrinfo.c::str_isnumber(), use strtol() and check the
 1132 	  result, instead of using strtoul() and not checking the result.
 1133 
 1134 	* define INADDRSZ if it's not found (e.g, HP/UX doesn't seem to have
 1135 	  it in <arpa/nameser.h>)
 1136 
 1137 Wed Sep 20 09:23:59 EST 2000	lukem
 1138 
 1139 	* crank to version 1.5 beta4
 1140 
 1141 Mon Sep 18 18:19:54 EST 2000	lukem
 1142 
 1143 	* add AC_AIX test, which defines _ALL_SOURCE under AIX
 1144 
 1145 	* use ANSI # stringization instead of __STRING()
 1146 
 1147 	* define HAVE_RFC2553_NETDB if <netdb.h> defines AI_NUMERICHOST
 1148 	  (et al) and has getaddrinfo(). (some systems only implement RFC2133)
 1149 
 1150 	* don't bother with AC_C_CONST as we depend upon ANSI C elsewhere
 1151 
 1152 	* when HAVE_RFC2553_NETDB isn't set, and we're #defining various EAI_,
 1153 	  AI_, and NI_ items, #undef first incase a system partially implements
 1154 	  these in <netdb.h>
 1155 
 1156 	* look for tgetent() in -ltinfo before -lncurses, because ncurses 5.0
 1157 	  has been split up into multiple libraries.
 1158 	  from Arkadiusz Miskiewicz <misiek@pld.org.pl>
 1159 
 1160 Fri Sep 15 01:09:10 EST 2000	lukem
 1161 
 1162 	* don't bother defining __P() or __STRING() based on whether
 1163 	  __STDC__ is available or not, since these aren't used any more
 1164 
 1165 	* fix mkstemp() prototype
 1166 
 1167 	* declare getpass() if necessary
 1168 
 1169 	* we don't need the readline xxgdb hack in libedit...
 1170 
 1171 	* convert to ansi declarations
 1172 
 1173 	* use ansi prototypes instead of __P()
 1174 
 1175 	* merge in changes from makelist 1.4 -> 1.6:
 1176 		- generate ansi prototypes instead of using __P().  noted by
 1177 		  christos
 1178 		- fix a couple of comments
 1179 		- add -m option to makelist, which generates an mdoc table
 1180 		  with the key bindings and their descriptions
 1181 		- manually add the output of 'sh ./makelist -m vi.c ed.c
 1182 		  common.c' to a new section in editrc(5) called
 1183 		  `EDITOR COMMANDS'
 1184 
 1185 	* merge libedit from NetBSD-current (20000915)
 1186 		* convert to new style guide, which includes:
 1187 			- ansi prototypes & features (such as stdargs)
 1188 			- 8 space indents
 1189 		* history_def_set has a `const int' as a third arg, not an
 1190 		  `int'.  picked up by the ultrix compiler, reported by
 1191 		  simonb@ ...
 1192 		* generate ansi prototypes instead of using __P().  noted by
 1193 		  christos.  fix a couple of comments
 1194 		* make xxgdb and a gdb linked with libedit's readline emulation
 1195 		  work properly together.   xxgdb communicates with a gdb
 1196 		  running on a pty that it sets to -echo,-onlcr prior to
 1197 		  forking the gdb process.  GNU readline preserves the -echo
 1198 		  setting while libedit was undoing it (setting the tty to a
 1199 		  sane state and totally confusing xxgdb's parser).
 1200 		  this diff simply disables libedit if both readline emulation
 1201 		  and "stty -echo" are used/set.   that is enough to make
 1202 		  xxgdb work once again, but (XXX) this is not how GNU readline
 1203 		  handles stty -echo (it does not echo anything, but editing
 1204 		  commands like ^A,^K, etc.  still work), so the readline
 1205 		  emulation isn't perfect.
 1206 
 1207 Tue Aug 29 18:00:08 EST 2000	lukem
 1208 
 1209 	* don't bother testing for #if __STDC__; just assume we have it...
 1210 
 1211 Mon Aug 28 22:45:08 EST 2000	lukem
 1212 
 1213 	* refine tests for IPv6 #defines (EAI_, AI_, NI_, ...).
 1214 	  should improve portability on systems which implement
 1215 	  RFC 2133 but not RFC 2553.
 1216 
 1217 Wed Aug  9 02:12:51 EST 2000	lukem
 1218 
 1219 	* use #if __STDC__ instead of #ifdef __STDC__
 1220 
 1221 	* only test 'case NETDB_INTERNAL:' if it's defined
 1222 
 1223 	* fix support for --program-prefix et al
 1224 
 1225 	* only include <arpa/nameser.h> in the files that need it, because
 1226 	  the DELETE define in some system's implementations causes name
 1227 	  collisions in libedit.
 1228 
 1229 Mon Aug  7 08:17:37 EST 2000	lukem
 1230 
 1231 	* merge ftp from NetBSD-current (20000807)
 1232 		* implement parseport(), which takes a string and attempts to
 1233 		  convert it to a numeric port number
 1234 		* use parseport() in parse_url() and hookup()
 1235 		* don't try and lookup the port number using getaddrinfo(),
 1236 		  as it's too hard to separate a failed host name lookup from
 1237 		  a failed service name lookup.  this was causing lossage on
 1238 		  systems that don't have `http' in services(5) (such as
 1239 		  solaris), but only crept in when we started using
 1240 		  getaddrinfo() unconditionally.
 1241 
 1242 Wed Aug  2 23:43:50 EST 2000	lukem
 1243 
 1244 	* crank to version 1.5 beta3
 1245 
 1246 	* define NO_LONG_LONG not NO_QUAD
 1247 
 1248 	* detect if struct sockaddr.sa_len exists (rather than relying upon
 1249 	  #ifdef BSD4_4)
 1250 
 1251 	* detect if socklen_t exists, and if not, typedef as unsigned int
 1252 
 1253 	* detect if struct addrinfo exists, and if not declare it and #define
 1254 	  associated EAI_, AI_, and NI_ defines.
 1255 
 1256 	* look for & replace: getaddrinfo(), getnameinfo(), inet_ntop(),
 1257 	  inet_pton()
 1258 	* look for gethostbyname2()
 1259 
 1260 	* don't bother looking for hstrerror() or inet_aton() anymore
 1261 
 1262 	* include <arpa/nameser.h> and <stddef.h>
 1263 
 1264 	* define USE_SELECT instead of __USE_SELECT
 1265 
 1266 	* always define HAVE_H_ERRNO
 1267 
 1268 	* add Brian Stark to THANKS, for lots of AIX porting feedback
 1269 
 1270 	* improve detection of sin_len for AIX (now part of sa_len test)
 1271 
 1272 	* add functions needed by recent ftp import:
 1273 		getaddrinfo(), getnameinfo(), inet_ntop(), inet_pton()
 1274 	  remove functions not needed anymore:
 1275 		hstrerror(), inet_aton()
 1276 
 1277 	* use #if HAVE_ISSETUGID not #ifdef
 1278 
 1279 	* update from NetBSD-current (20000802):
 1280 		- rename NO_QUAD to NO_LONG_LONG, QUAD* -> LL* and add ULL*
 1281 		  (unsigned) equivalents. name change suggested by Klaus
 1282 		  Klein <kjk@NetBSD.org>
 1283 		- change defined(BSD4_4) || HAVE_SIN_LEN tests into
 1284 		  HAVE_SOCKADDR_SA_LEN, and set the latter if BSD4_4 exists
 1285 
 1286 Mon Jul 31 10:59:10 EST 2000	lukem
 1287 
 1288 	* merge ftp from NetBSD-current (20000731)
 1289 		- we can't just rename BSD4_4 -> HAVE_SIN_LEN, since bsd
 1290 		  systems define BSD4_4; change tests to test for either
 1291 		  defined(BSD4_4) or HAVE_SIN_LEN
 1292 		- more KNF
 1293 
 1294 Sun Jul 30 16:55:09 EST 2000	lukem
 1295 
 1296 	* merge ftp from NetBSD-current (20000730):
 1297 		- clean up NO_QUAD support: create helper #defines and use as
 1298 		  appropriate:
 1299 			#define         NOQUAD          ! NOQUAD
 1300 			-------         ------          - ------
 1301 			QUADF           "%ld"           "%lld"
 1302 			QUADFP(x)       "%" x "ld"      "%" x "lld"
 1303 			QUADT           long            long long
 1304 			STRTOL(x,y,z)   strtol(x,y,z)   strtoll(x,y,z)
 1305 		- always use getaddrinfo() and getnameinfo() instead of
 1306 		  maintaining two code paths.
 1307 		- rename __USE_SELECT to USE_SELECT
 1308 		- rename BSD4_4 to HAVE_SIN_LEN
 1309 		- replace union sockunion {} with struct sockinet {}, and
 1310 		  modify the code accordingly. this is possibly more portable,
 1311 		  as it doesn't rely upon the structure alignment within the
 1312 		  union for our own stuff.
 1313 
 1314 Fri Jul 28 22:11:17 EST 2000	lukem
 1315 
 1316 	* merge ftp from NetBSD-current (20000728):
 1317 		- no trailing , on last item (FEAT_max) in enum
 1318 		- rename "opts" to "remopts", so people used to "o host"
 1319 		  don't get bitten
 1320 
 1321 Wed Jul 26 18:59:19 EST 2000	lukem
 1322 
 1323 	* merge ftp from NetBSD-current (20000726):
 1324 		- add support for FEAT and OPTS commands with `features' and
 1325 		  `opts'.  (from RFC 2389).
 1326 		- add support for MLST & MLSD (machine parseble listings)
 1327 		  with 'mlst', 'mlsd' and 'pmlsd' (mlsd |$PAGER) commands.
 1328 		  (from draft-ietf-ftpext-mlst-11)
 1329 		- rename remotesyst() to getremoteinfo(), and modify to parse
 1330 		  the result from FEAT (if supported), and take into account
 1331 		  the support for the various extensions such as MDTM, SIZE,
 1332 		  REST (STREAM), MLSD, and FEAT/OPTS.
 1333 		- put each feature into one of the following categories:
 1334 			- known to work (explicit FEAT)
 1335 			- unknown but assume works until explicit failure,
 1336 			  when it's then tagged as `known not to work'.
 1337 			- known not to work (FEAT succeeded but didn't return
 1338 			  anything, or was unknown and then explicit failure)
 1339 		  assign results into features[] matrix.
 1340 		- add support to getreply() so that an optional callback will
 1341 		  be called for each line received from the server except for
 1342 		  the first and last.  this is used in FEAT (and MLST) parsing.
 1343 		- modify various commands to check if REST (STREAM), MDTM and
 1344 		  SIZE are explicitly or implicitly supported before using.
 1345 		- fix `syst' when verbose is off.
 1346 		- minor knf (indent goto labels by one space, etc).
 1347 		- simply various command usage handlers by assuming that
 1348 		  argv != NULL except for quit() and disconnect().
 1349 		- errx?/warnx? audit.  do not pass variable alone, use %s.
 1350 
 1351 	* check for issetugid() and don't use in libedit if it doesn't exist.
 1352 
 1353 	* merge libedit from NetBSD-current (20000726):
 1354 		* Only look in home directory for .editrc.  (Discussed
 1355 		  with Christos.)
 1356 
 1357 	* in glob.c #undef TILDE before redefining, because some AIX systems
 1358 	  #define TILDE in <sys/ioctl.h>
 1359 
 1360 Mon Jul 10 00:28:51 EST 2000	lukem
 1361 
 1362 	* released lukemftp 1.4
 1363 
 1364 Thu Jun 15 23:28:49 EST 2000	lukem
 1365 
 1366 	* merge ftp from NetBSD-current (20000615):
 1367 		* migrate the SYST parsing from setpeer() into a separate
 1368 		  remotesyst().  call remotesyst() only when login has been
 1369 		  successful some servers don't let you run SYST until you've
 1370 		  successfully logged in.
 1371 		* in fetch_ftp(), always call setpeer() with autologin
 1372 		  disabled, and use the following ftp_login() to DTRT.  this
 1373 		  prevents ftp from trying to login a second time if the
 1374 		  first autologin fails when connecting to a remote site
 1375 		  anonymously using autofetch.
 1376 		* reset unix_proxy and unix_server in cleanuppeer()
 1377 		* missed a function conversion in the KNF sweep...
 1378 
 1379 Mon Jun 12 01:16:12 EST 2000	lukem
 1380 
 1381 	* change lukemftp.h to check !HAVE_STRDUP instead of !HAVE_STRSUP.
 1382 	  fixes compile problem on systems which have strdup() as a macro.
 1383 
 1384 	* merge ftp from NetBSD-current (20000612):
 1385 		from itojun: better fix for previous (doesn't need
 1386 		in_addr_t or u_int32_t)
 1387 
 1388 Sun Jun 11 12:19:52 EST 2000	lukem
 1389 
 1390 	* merge ftp from NetBSD-current (20000611):
 1391 		portability fixes for lukemftp:
 1392 		* initconn(): use in_addr_t instead of u_int32_t when
 1393 		  manipulating IPv6 addresses (and assume anything with ipv6
 1394 		  has in_addr_t; if not, i'll add an autoconf test for it)
 1395 		* ai_unmapped(): not all systems have sin_len; so only set
 1396 		  #ifdef BSD4_4
 1397 		* fix some lint
 1398 
 1399 Mon Jun  5 21:10:31 EST 2000	lukem
 1400 
 1401 	* released lukemftp 1.3
 1402 
 1403 Mon Jun  5 19:53:49 EST 2000	lukem
 1404 
 1405 	* convert various support files to ANSI C
 1406 
 1407 	* look for strtoll() instead of strtoq()
 1408 
 1409 	* update COPYRIGHT, THANKS, NEWS
 1410 
 1411 	* merge ftp from NetBSD-current (20000605):
 1412 		- fix ai_unmapped() to be a no-op in the !def INET6 case
 1413 		- display `(-INET6)' at the end of the version string if
 1414 		  !def INET6
 1415 		- clarify in the man page that IPv6 support may not be present
 1416 		  (for lukemftp :)
 1417 
 1418 	* ensure <vis.h> has VIS_WHITE et al
 1419 
 1420 Sun Jun  4 18:00:07 EST 2000	lukem
 1421 
 1422 	* merge ftp from NetBSD-current (20000604):
 1423 		- Change `ls' to use the `LIST' and not `NLST' FTP protocol
 1424 		  command.  Now that after many years on not caring we find
 1425 		  certain popular ftp servers are starting to obey RFC959 to
 1426 		  the letter of the law and will only return a list of
 1427 		  filenames (not directories or other filetypes) in the
 1428 		  output of `NLST', then `LIST' is more useful in this case.
 1429 		  (Note that the aforementioned pedanticness means that
 1430 		  filename completion isn't as useful as it could be...)
 1431 		  Fixes [bin/8937] by David A. Gatwood
 1432 		  <dgatwood@deepspace.mklinux.org>
 1433 		- convert to ANSI KNF
 1434 		- Add support for `fget localfile', which reads a list of
 1435 		  filenames to retrieve from localfile.  Based on work by
 1436 		  Darren Reed.
 1437 		- Update copyright dates.
 1438 		- s/strtoq/strtoll/ (the latter is standardised)
 1439 		- Add support for 'ftp -u url file ...', to upload a list of
 1440 		  files to given url.  Mostly based on [bin/10019] by Scott
 1441 		  Aaron Bamford <sab@ansic.net>
 1442 		- convert IPv4 mapped address (::ffff:10.1.1.1) into real IPv4
 1443 		  address before touching it.  IPv4 mapped address complicates
 1444 		  too many things in FTP protocol handling.
 1445 		- do not pass scoped IPv6 address notation on Host: directive,
 1446 		  since scope identifier is local to the originating node.
 1447 		  do not allow scoped IPv6 address notation in URL, if it is
 1448 		  via proxy.
 1449 		- fixes from cgd:
 1450 		  * sanity check a length (otherwise certain bogus responses
 1451 		    can crash ftp)
 1452 		  * allow a transfer encoding type of `binary'; certain
 1453 		    firewall vendors return this bogus type...
 1454 		- make debugging output unambiguous on IPv6 numeric addrs
 1455 		  (don't use host:port)
 1456 		- http://[::1]:8080/ is legal.
 1457 		- send Host: directive with RFC2732 bracket notation for IPv6
 1458 		  numeric, otherwise "host:port" is ambiguous to servers
 1459 		  (clarification will be submitted as update to RFC2732).
 1460 		- only use getaddrinfo() et al if both NI_NUMERICHOST *and*
 1461 		  INET6 are defined...  (allows --disable-ipv6 in lukemftp's
 1462 		  configure script to disable this as well, which is good for
 1463 		  testing when it appears getaddrinfo() is borken)
 1464 		- updated comment on IPv4 mapped address.  sync with kame.
 1465 		- Fix examples on using pipes in local filenames.  AFAICT,
 1466 		  ftp has always required `dir . |more' not as `dir |more'
 1467 		  treats `|more' as the remote filename. Resolves [bin/9922]
 1468 		  by Geoff Wing <mason@primenet.com.au>
 1469 		- ftp(1): treats IPv4 mapped destination as IPv4 peer, not
 1470 		  native IPv6 peer.  this does not support network with SIIT
 1471 		  translator.
 1472 		- inhibit too-noisy message for scoped address data transfer
 1473 		  (will be enabled in "debug" mode).
 1474 		- only use IPTOS_ setsockopt()s if they're defined (e.g, SunOS
 1475 		  doesn't).  from Havard.Eidnes@runit.sintef.no
 1476 		- allow IPv6 extended numeric address in host part.
 1477 		  (draft-ietf-ipngwg-scopedaddr-format-01.txt). fixes PR 9616.
 1478 
 1479 	* merge libedit from NetBSD-current (20000604):
 1480 		- use strtol() (instead of atoi()) for sane error detection
 1481 
 1482 Wed May 31 19:24:53 EST 2000	lukem
 1483 
 1484 	* merge libedit from NetBSD-current (20000531):
 1485 		- Fix refresh glitches when using auto-margin.
 1486 		- Don't dump core on empty .editrc files.
 1487 		- el_insertstr takes a "const char *" not "char *" now as it
 1488 		  doesn't modify the argument.
 1489 
 1490 Thu Feb  3 20:19:40 EST 2000	lukem
 1491 
 1492 	* released lukemftp 1.2
 1493 
 1494 Tue Feb  1 09:47:51 EST 2000	lukem
 1495 
 1496 	* add --enable-ipv6 and --disable-ipv6 to configure
 1497 
 1498 	* modify libedit/sig.? to use sigfunc instead of sig_t, and
 1499 	  deprecate autoconf tests for retsigtype and sig_t.
 1500 	  This fixes portability problems with Digital UNIX 5.0.
 1501 
 1502 	* merge ftp from NetBSD-current (20000201):
 1503 		- define private type `sigfunc' as
 1504 			typedef void (*sigfunc) __P((int));
 1505 		  and replace use of sig_t and void (*)(int).
 1506 		  certain other OSes define sig_t differently to that (they
 1507 		  add extra arguments), and it causes problems due to
 1508 		  function mismatches, etc...
 1509 
 1510 Wed Jan 26 22:54:38 EST 2000	lukem
 1511 
 1512 	* search for tgetent() in -ltermcap then -lcurses and -lncurses
 1513 
 1514 	* merge ftp from NetBSD-current (20000126):
 1515 		- roll back to using sscanf() instead of strptime() to parse
 1516 		  `yyyymmddhhmmss' strings, since the latter technically can't
 1517 		  parse dates without non alphanumerics between the elements
 1518 		  (even though NetBSD's strptime() copes).
 1519 
 1520 Tue Jan 25 19:09:37 EST 2000	lukem
 1521 
 1522 	* merge ftp from NetBSD-current (20000125):
 1523 		- complete_ambiguous(): be consistent about completing
 1524 		  unambiguous matches; if the word is already complete then
 1525 		  return CC_REFRESH so that the higher layer may append a
 1526 		  suffix if necessary. Fix from Launey Thomas <ljt@alum.mit.edu>
 1527 		- change references from draft-ietf-ipngwg-url-literal-01.txt
 1528 		  to RFC2732
 1529 		- work around bug in apache 1.3.9 which incorrectly puts a
 1530 		  trailing space after the chunksize.  noted by Jun-ichiro
 1531 		  itojun Hagino <itojun@itojun.org> in [bin/9096]
 1532 		- work around lame ftpd's that don't return a correct post-Y2K
 1533 		  date in the output of `MDTM'.  obviously the programmer of
 1534 		  aforementioned lame ftpd's did something like
 1535 			"19%02d", tm->tm_year
 1536 		  instead of
 1537 			"%04d", tm->tm_year + TM_YEAR_BASE
 1538 		  fixes [bin/9289] by jbernard@mines.edu
 1539 
 1540 	* merge libedit from NetBSD-current (20000125):
 1541 		- PR/9244: Kevin Schoedel: libedit dumps bindings
 1542 		  inconsistently
 1543 		- PR/9243: Kevin Schoedel: libedit ignores repeat count
 1544 		- Add support for automatic and magic margins (from tcsh)
 1545 		  This makes the rightmost column usable on all programs
 1546 		  that use editline.
 1547 
 1548 Tue Dec 21 08:59:22 EST 1999	lukem
 1549 
 1550 	* update INSTALL notes for some systems
 1551 
 1552 	* if sl_init() exists, check return value of sl_add() is int and
 1553 	  compile in a replacement copy if it's not the case
 1554 
 1555 	* don't look for <stringlist.h> - always use local prototypes; older
 1556 	  NetBSD systems may have conflicting prototypes
 1557 
 1558 Mon Dec 20 11:21:28 EST 1999	lukem
 1559 
 1560 	* merge ftp from NetBSD-current (19991220):
 1561 	- Move version from ftp_var.h to version.h
 1562 	- Fix chunked support; probably broke after rate limiting was added.
 1563 	  Problem noticed/debugging assisted by giles lean
 1564 	  <giles@nemeton.com.au>.
 1565 	- remove unnecessary freeaddrinfo(res), since res0 was changed to be
 1566 	  freed earlier in itojun's last commit. fixes [bin/8948].
 1567 	- remove `const char *reason'; it was being assigned but not used.
 1568 	- fix memory leak in fetch_url (no freeaddrinfo was there).
 1569 	  sync with recent KAME.
 1570 	- separate out the main `data pump' loop into two: one that supports
 1571 	  rate limiting and one that doesn't. simplifies the code, and speeds
 1572 	  up the latter case a bit, at the expense of duplicating a few
 1573 	  lines...
 1574 
 1575 Sun Nov 28 18:20:41 EST 1999	lukem
 1576 
 1577 	* merge ftp from NetBSD-current (19991128):
 1578 	- implement xsl_init() and  xsl_add(); error checking forms of
 1579 	  sl_{init,add}()
 1580 	- fix bug where the second press of <TAB> on an empty word (i.e, list
 1581 	  all options) may have resulted in an strncmp() against NULL.
 1582 	  (detected by _DIAGASSERT())
 1583 	- in cleanuppeer(), reset username to NULL after free()ing it.
 1584 	  fixes [bin/8870] by Wolfgang Rupprecht <wolfgang@wsrcc.com>
 1585 	- complete_remote(): use remglob("", ...) instead of remglob(".", ...),
 1586 	  for listings of the current working directory; some ftp servers don't
 1587 	  like `NLST .'.
 1588 	  [noted by Giles Lean <giles@nemeton.com.au>]
 1589 	- recvrequest(): treat remote=="" as remote==NULL when calling
 1590 	  command().  (to support the above change)
 1591 	- support `[user@]' in `[user@]host' and `[user@]host[:][path]'.
 1592 	  [based on idea (and initial code) from David Maxwell <david@fundy.ca>]
 1593 	- `idle' may be invoked without any args
 1594 	- reformat some comments
 1595 	- reformat usage string in program and man page
 1596 	- call updateremotepwd() after successful login, not after successful
 1597 	  connect
 1598 	- always call setsockopt(, IPPROTO_IP, IP_TOS, ) (et al); using #if
 1599 	  defined(IPPROTO_IP) doesn't work on certain foreign systems where
 1600 	  enums instead of #defines are used...
 1601 	  [noted by Matthias Pfaller <leo@dachau.marco.de>]
 1602 
 1603 Mon Nov 15 23:01:58 EST 1999	lukem
 1604 
 1605 	* released lukemftp 1.1
 1606 
 1607 Mon Nov 15 09:07:01 EST 1999	lukem
 1608 
 1609 	* merge libedit from NetBSD-current (19991115):
 1610 		- instead of using a private coord_t global variable to store
 1611 		  the size of the rprompt, use the previously unused coord_t
 1612 		  el->el_rprompt.p_pos
 1613 
 1614 Sat Nov 13 14:42:22 EST 1999	lukem
 1615 
 1616 	* support caching of results in AC_MSG_TRY_{COMPILE,LINK}
 1617 	  autoconf tests
 1618 
 1619 	* add NEWS file
 1620 
 1621 	* clarify copyright statement in COPYING
 1622 
 1623 	* merge ftp from NetBSD-current (19991113):
 1624 		- implement `set rprompt'; right side version of `set prompt'.
 1625 		  depends on EL_RPROMPT support i added to editline(3).
 1626 		- allow $FTPPROMPT and $FTPRPROMPT to override defaults for
 1627 		  the relevant prompts
 1628 		- move `%' formatting code from prompt() to expandbuf().
 1629 		- implement `%.' and `%c', similar to the same % codes in
 1630 		  tcsh(1) (functionality I added to tcsh nearly 6 years ago),
 1631 		  except that `%.' always does `...trailing' and `%c' always
 1632 		  does `/<x>trailing'.
 1633 		- unknown `%foo' codes get printed as `%foo'
 1634 		- implement updateremotepwd(); update the global variable
 1635 		  `remotepwd' to contain the remote working directory.
 1636 		- add `set prompt', a user configurable prompt. (defaults to
 1637 		  `ftp> ').  the following escape characters a la tcsh(1) are
 1638 		  supported: %/, %m, %M, and %n.
 1639 		- add global var `username'; used by prompt code
 1640 		- fix a couple of minor memory leaks
 1641 		- bump version
 1642 		- prevent minor memory leak (unnecessary strdup)
 1643 		- implement restarting file:/// non-proxied http:// URLs
 1644 		  (with -R).
 1645 		- fix a semicolono which stopped file:/// from working
 1646 		- split the version string into product and version
 1647 		- be consistent about reporting the version between:
 1648 			+ status command
 1649 			+ about:version URL fetch
 1650 			+ User-agent sent in http requests
 1651 		- hookup(): when using getservbyname() (when getaddrinfo()
 1652 		  isn't available), if the provided port is a valid number
 1653 		  use that rather than trying to do getservbyname() against
 1654 		  it. fixes a problem on foreign systems noted by Chuck
 1655 		  Silvers <chuq@chuq.com>
 1656 		- support `about:version'. also display the version in the
 1657 		  output of `status'.
 1658 
 1659 	* merge libedit from NetBSD-current (19991113):
 1660 		- implement printing a right-side prompt. code derived from
 1661 		  similar work I wrote for tcsh(1) three years ago.
 1662 		- implement EL_RPROMPT, which allows a setting/getting of a
 1663 		  function which returns a string to be used as the
 1664 		  right-side prompt.
 1665 
 1666 	* replace manually managed config.h.in with acconfig.h and use
 1667 	  autoheader to generate the former.
 1668 
 1669 	* add missing entry for `#undef write' in acconfig.h (for SOCKS)
 1670 
 1671 	* configure.in:
 1672 		- use `LL' suffix on long long constant used to test
 1673 		  snprintf("%lld")
 1674 		- test for EL_RPROMPT instead of EL_EDITMODE, since the
 1675 		  former is is a newer required feature
 1676 
 1677 	* in makelist, set LC_ALL="C", in case the locale confuses awk.
 1678 	  problem noted by Peter Seebach <seebs@plethora.net>
 1679 
 1680 Wed Oct 27 07:00:00 UTC 1999	lukem
 1681 
 1682 	* released 1.0
 1683 
 1684 	* removed libedit/TEST/test.c; no need to distribute it
 1685 
 1686 Mon Oct 25 21:59:54 EST 1999	lukem
 1687 
 1688 	* released 1.0b7
 1689 
 1690 	* put VERSION string into lukemftp.h, and display with the `status'
 1691 	  command
 1692 
 1693 Mon Oct 25 11:36:59 EST 1999	lukem
 1694 
 1695 	* merge ftp from NetBSD-current (19991025):
 1696 	- fix up confirm() (broke `a' and `p' in last commit)
 1697 	- simplify main loop (don't need `top' variable any more)
 1698 	- use a struct sockaddr_in6.sin6_addr for the result from inet_pton(),
 1699 	  rather than u_char buf[16]
 1700 	- add a few more comments
 1701 
 1702 	new features:
 1703 	- add `usage'; displays the usage of a command.
 1704 	  implemented by calling the c_handler() with argc = 0, argv =
 1705 	  "funcname".
 1706 	- add `passive auto'; does the same as $FTPMODE=auto.
 1707 	- add `set [option value]'; display all options, or set an option to
 1708 	  a value.
 1709 	- add `unset option'; unset an option.
 1710 	- add getoptionvalue() to retrieve an option's value, and replace a few
 1711 	  global variables with calls to this.
 1712 	- implement cleanuppeer(), which resets various bits of state back to
 1713 	  `disconnected'. call in disconnect() and lostpeer().
 1714 	- support completing on `options'.
 1715 	- improve recovery after a SIGINT may have closed the connection.
 1716 	  XXX: there's still a couple to fix
 1717 
 1718 	other stuff:
 1719 	- various consistency fixes in the man page.
 1720 	- ensure that the command usage strings in the code and man page
 1721 	  match reality.
 1722 	- mput/mget: check that the connection still exists before each xfer.
 1723 	- minor cosmetic changes in confirm().
 1724 	- set code correctly in sizecmd() and modtime()
 1725 	- don't need \n in err() strings.
 1726 	- change lostpeer to take an argument (rather than casting
 1727 	  (sig_t)lostpeer in signal handlers)
 1728 	- knf and whitespace police.
 1729 
 1730 Sun Oct 24 17:02:59 EST 1999	lukem
 1731 
 1732 	* merge libedit from NetBSD-current (19991024):
 1733 		- don't assume locales are not working - it may not be
 1734 		  the case
 1735 		- re_refresh(): cast the character passed to re_addc() to
 1736 		  unsigned char,  so we don't end up calling isprint() with
 1737 		  negative value when chars are signed and character value
 1738 		  is >= 128
 1739 		- Fix pointer arithmatic (caused problems on LP64, including
 1740 		  ftp dumping core when `edit' was turned off then on).
 1741 		  Problem solved by David Huggins-Daines <dhd@eradicator.org>
 1742 
 1743 Tue Oct 12 18:05:21 EST 1999	lukem
 1744 
 1745 	* install man page from ${srcdir} not from .
 1746 
 1747 Tue Oct 12 17:00:41 EST 1999	lukem
 1748 
 1749 	* released 1.0b6
 1750 
 1751 	* merge from NetBSD-current (19991012):
 1752 	  a few user interface and cosmetic tweaks:
 1753 		- confirm(): move from util.c to cmds.c. display mnemonic
 1754 		  string in its prompt. add support for `q' (terminate
 1755 		  current xfer), `?' (show help list)
 1756 		- in various signal handlers, output a linefeed only if
 1757 		  fromatty.
 1758 		- if fgets(stdin) returned NULL (i.e, EOF), clearerr(stdin)
 1759 		  because you don't want future fgets to fail. this is not
 1760 		  done for the fgets() in the main command loop, since ftp
 1761 		  will quit at that point.
 1762 		- unless ftp is invoked with -a, don't retain the anonftp
 1763 		  setting between hosts (`ftp somehost:' sets anonftp, but
 1764 		  you don't want that to `stick' if you close that connection
 1765 		  and open a new one).
 1766 
 1767 Mon Oct 11 23:06:38 EST 1999	lukem
 1768 
 1769 	* check for working const
 1770 
 1771 	* reorganise addition of -lukem to LIBS (was being added twice)
 1772 
 1773 	* merge from netbsd-current:
 1774 		- use sigjmp_buf instead of jmp_buf for sigsetjmp() buffer
 1775 
 1776 	* libedit: don't bother generating & compiling editline.c, since
 1777 	  its component parts are compiled anyway.
 1778 
 1779 Sun Oct 10 12:08:39 EST 1999	lukem
 1780 
 1781 	* released 1.0b5
 1782 
 1783 	* in libedit, use xsignal_restart() (from src/util.c) instead of
 1784 	  signal(); the isn't guaranteed to work on some foreign systems
 1785 	  (e.g, IRIX) if sigaction() is used in the same program.
 1786 
 1787 	* merge from netbsd-current:
 1788 		- use sigsetjmp()/siglongjump() instead of setjmp()/longjmp();
 1789 		  the latter don't save the signal mask on some foreign systems.
 1790 		- ensure signal handlers don't use stdio and do reset errno
 1791 		  if they don't exit with siglongjmp()
 1792 		- use a common SIGINT handler for {send,recv}request()
 1793 		- allow a second SIGINT during the "xfer aborted. waiting for
 1794 		  remote to finish abort." stage. if this occurs, just call
 1795 		  lostpeer() to close the connection.  whilst this might be
 1796 		  considered brutal, it's also extremely handy if you're
 1797 		  impatient or there's lossage at the remote end.
 1798 
 1799 	* add preformatted manual page
 1800 
 1801 	* fix --enable-editline
 1802 
 1803 Wed Oct  6 10:19:00 EST 1999	lukem
 1804 
 1805 	* released 1.0b4
 1806 
 1807 	* don't defining SIGINFO to SIGQUIT if the former doesn't exist; the
 1808 	  code now supports both as a method of getting the transfer stats
 1809 
 1810 	* rototill signal handling in the actual data xfer routines, and
 1811 	  specifically set SIGQUIT to psummary in each one, to override
 1812 	  editline's handler
 1813 
 1814 Tue Oct  5 23:48:29 EST 1999	lukem
 1815 
 1816 	* factor out SIGINFO setting into a handler that is always active
 1817 	  (but only prints out info if bytes > 0). only set the handler if
 1818 	  SIGINFO is defined
 1819 
 1820 	* hijack SIGQUIT to be the same as SIGINFO
 1821 
 1822 	* in {recv,send}request(), factor a lot of duplicated code out into
 1823 	  a `cleanup' section at the end
 1824 
 1825 	* rework shell() a bit
 1826 
 1827 	* enhancments from Marc Horowitz <marc@mit.edu> to improve
 1828 	  connection timeouts:
 1829 		- implement xsignal_restart(), which only sets the SA_RESTART
 1830 		  flag if specifically requested
 1831 		- xsignal() is now a wrapper to xsignal_restart(). INFO,
 1832 		  USR1, USR2 and WINCH are restartable, ALRM, INT, PIPE and
 1833 		  QUIT are not
 1834 		- improve getreply()'s timeout code to take advantage of the
 1835 		  above
 1836 
 1837 	* improve wording of how globbing works for `classic' URLs (host:path)
 1838 	  suggested by John Refling <johnr@imageworks.com> in relation to PRs
 1839 	  [bin/8519] and [bin/8520]
 1840 
 1841 	* always compile in the `edit' command even if NO_EDITCOMPLETE defined
 1842 	  it's just a no-op in the latter case, which is more consistent to
 1843 	  the users
 1844 
 1845 	* always compile in about: support (i.e, remove NO_ABOUT).  i'm
 1846 	  entitled to some vanity in this program...
 1847 
 1848 	* update copyrights
 1849 
 1850 Mon Oct  4 10:57:41 EST 1999	lukem
 1851 
 1852 	* Invoke ar with `cr' not `cq'
 1853 
 1854 	* Use AC_PROG_RANLIB to find ranlib, and use it on the libraries
 1855 
 1856 	* Remove `makelist' from dependency list for libedit files; re-running
 1857 	  configure shouldn't result in rebuilding libedit
 1858 
 1859 	* Add support for --{en,dis}able-editcomplete (defaults to enabled),
 1860 	  which prevents libedit support from being compiled in.
 1861 	  From Chris G. Demetriou <cgd@NetBSD.org>
 1862 
 1863 Sun Oct  3 16:49:01 EST 1999	lukem
 1864 
 1865 	* touch up the README
 1866 
 1867 	* add COPYING, INSTALL, THANKS
 1868 
 1869 	* whitespace consistency
 1870 
 1871 	* in config.h, replace NO_QUAD with HAVE_QUAD_SUPPORT, and in
 1872 	  lukemftp.h define the former if the latter is non zero
 1873 
 1874 	* change test against GETPGRP_VOID from #ifdef to #if
 1875 
 1876 	* snprintf(): in the truncation case, ensure that the length
 1877 	  returned is the actual length, not the needed length
 1878 
 1879 Sat Oct  2 00:41:34 EST 1999	lukem
 1880 
 1881 	* fix more lossage with $(srcdir) / $(VPATH) stuff; seems to work now
 1882 	  when configured in a separate directory
 1883 
 1884 	* actually test the correct variable when determining whether to run
 1885 	  AC_FUNC_GETPGRP
 1886 
 1887 Fri Oct  1 19:32:22 EST 1999	lukem
 1888 
 1889 	* released 1.0b3
 1890 
 1891 	* use AC_PROG_MAKE_SET
 1892 
 1893 	* determine setting of NO_QUAD with configure not lukemftp.h
 1894 
 1895 	* if have long long and have snprintf, test that snprintf
 1896 	  supports %lld. if it doesn't use private version
 1897 
 1898 	* change strtoq from returning off_t to returning long long
 1899 
 1900 	* updates from NetBSD mainline:
 1901 		- only try epsv once per connection (i.e, don't bother again
 1902 		  if it fails)
 1903 		- improve description of rate command
 1904 		- fix up global vars; they're now externed in ftp_var.h
 1905 		  except when main.c includes it
 1906 		- remove "pathnames.h"
 1907 
 1908 Fri Oct  1 10:08:43 EST 1999	lukem
 1909 
 1910 	* updates from NetBSD mainline:
 1911 		- fix determining of homedir
 1912 		- parse_url(): fix checking of portnum
 1913 		- move kame copyrights after bsd/tnfi ones
 1914 
 1915 	* released 1.0b2
 1916 
 1917 	* add %lld and %qd support to snprintf() for displaying long long's
 1918 
 1919 	* support VPATH and srcdir
 1920 
 1921 Thu Sep 30 17:19:35 EST 1999	lukem
 1922 
 1923 	* released 1.0b1
 1924 
 1925 	* fix from NetBSD mainline: in empty() FD_ZERO the correct variable
 1926 
 1927 Wed Sep 29 23:34:33 EST 1999	lukem
 1928 
 1929 	* major rework; reimport code from NetBSD-current 1999/09/29 into
 1930 	  separate subdirectories and build from there. organisation is now:
 1931 		libedit		replacement libedit
 1932 		libukem		replacements for missing functions
 1933 		src		main ftp source
 1934 
 1935 Mon Sep 27 00:43:12 EST 1999	lukem
 1936 
 1937 	* released 1.0 a6
 1938 
 1939 Sun Sep 26 17:17:05 EST 1999	lukem
 1940 
 1941 	* released 1.0 a5
 1942 
 1943 Sat Sep 25 00:58:28 EST 1999	lukem
 1944 
 1945 	* released 1.0 a4
 1946 
 1947 Fri Sep 24 17:07:07 EST 1999	lukem
 1948 
 1949 	* released 1.0 a3
 1950 
 1951 Fri Sep 24 16:18:29 EST 1999	lukem
 1952 
 1953 	* released 1.0 a2
 1954 
 1955 Tue Sep 21 11:38:49 EST 1999	lukem
 1956 
 1957 	* import usr.src/bin/ftp and usr.src/lib/libedit sources from NetBSD