History log of /freebsd-9.3-release/usr.bin/telnet/
Revision Date Author Comments
267654 20-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


225736 23-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


201386 02-Jan-2010 ed

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


178828 07-May-2008 dfr

Fix conflicts after heimdal-1.1 import and add build infrastructure. Import
all non-style changes made by heimdal to our own libgssapi.


171246 05-Jul-2007 bz

Remove the -DFAST_IPSEC from Makefiles again.

This was needed during the IPSEC->FAST_IPSEC->IPSEC transition
period to not break the build after picking up netipsec header
files. Now that the FAST_IPSEC kernel option is gone and the
default is IPSEC again those defines are superfluous.

Approved by: re (rwatson)


171135 01-Jul-2007 gnn

Commit IPv6 support for FAST_IPSEC to the tree.
This commit includes all remaining changes for the time being including
user space updates.

Submitted by: bz
Approved by: re


160854 31-Jul-2006 yar

Stop enforcing dependencies between MK_* options at Makefile level.
All the dependencies are satisfied now in <bsd.own.mk>.


160749 27-Jul-2006 yar

Respect MK_INET6_SUPPORT.
Move INET6 out of the RELEASE_CRUNCH conditional block
because it saves as little as 2% of the binary size and
IPv6 is rather popular today. (Some other binaries, e.g.,
telnetd, include INET6 for RELEASE_CRUNCH already.)


156813 17-Mar-2006 ru

Reimplementation of world/kernel build options. For details, see:

http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html

The src.conf(5) manpage is to follow in a few days.

Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)


147225 10-Jun-2005 des

Remove kludges intended to support src trees with partial obj trees.

Discussed with: ru


139113 21-Dec-2004 ru

NOCRYPT -> NO_CRYPT


133196 06-Aug-2004 cperciva

Join the 21st century: Cryptography is no longer an optional component
of releases. The -DNOCRYPT build option still exists for anyone who
really wants to build non-cryptographic binaries, but the "crypto"
release distribution is now part of "base", and anyone installing from a
release will get cryptographic binaries.

Approved by: re (scottl), markm
Discussed on: freebsd-current, in late April 2004


117973 24-Jul-2003 markm

Make sure that a "make release" (more accurately the bit that makes
the crunched binary) get a non-cryptographic telnet. This is overkill
in that it covers stuff that is not normally used in a crunched binary.


117953 24-Jul-2003 markm

Ensure that for the cryptographic instances of *telnet*, the "crypto"
distribution is used. This only affects release-building.


117813 20-Jul-2003 markm

Test correct macro for "without crypto" option(s).


117675 16-Jul-2003 markm

Very big makeover in the way telnet, telnetd and libtelnet are built.

Previously, there were two copies of telnet; a non-crypto version
that lived in the usual places, and a crypto version that lived in
crypto/telnet/. The latter was built in a broken manner somewhat akin
to other "contribified" sources. This meant that there were 4 telnets
competing with each other at build time - KerberosIV, Kerberos5,
plain-old-secure and base. KerberosIV is no longer in the running, but
the other three took it in turns to jump all over each other during a
"make buildworld".

As the crypto issue has been clarified, and crypto _calls_ are not
a problem, crypto/telnet has been repo-copied to contrib/telnet,
and with this commit, all telnets are now "contribified". The contrib
path was chosen to not destroy history in the repository, and differs
from other contrib/ entries in that it may be worked on as "normal"
BSD code. There is no dangerous crypto in these sources, only a
very weak system less strong than enigma(1).

Kerberos5 telnet and Secure telnet are now selected by using the usual
macros in /etc/make.conf, and the build process is unsurprising and
less treacherous.


114912 11-May-2003 markm

Mrege from crypto telnet with "make unifdef". This gets a bunch of
$FreeBSD$ tags and some debug variable safety belts.


108385 29-Dec-2002 markm

Diff-reduction WRT crypto telnet; replace "#if 0" code removed by an
earlier invocation of unifdef(1).


108317 27-Dec-2002 schweikh

english(4) police.


107110 20-Nov-2002 eric

Be more careful when parsing arguments.

PR: 45476
MFC after: 5 days


104333 02-Oct-2002 dd

Remove some #if 0'd code. After this, a "make unifdef" here produces
no changes (against crypto telnet).

Reviewed by: MD5


104332 02-Oct-2002 dd

Merge from crypto telnet: permit the argument to -s to be a hostname.


103957 25-Sep-2002 markm

Unifdef(1) the crypto telnet sources.


102412 25-Aug-2002 charnier

Replace various spelling with FALLTHROUGH which is lint()able


99933 13-Jul-2002 jmallett

Typo fixo: imbedded => embedded


95258 22-Apr-2002 des

Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.


95124 20-Apr-2002 charnier

Use `The .Nm utility'


87714 12-Dec-2001 markm

Remove WARNS?=2 and -Wall. WARNS?=2 is going to be the default.


87537 08-Dec-2001 jkh

Don't assume that the number of fds to select on is known quantity (in
this case 16). Use dynamic FD_SETs and calculated high-water marks
throughout.
Obtained from: OpenBSD and Apple's Radar database
MFC after: 2 days


87279 03-Dec-2001 jhay

Merge from crypto/telnet/telnet/commands.c. Add the necessary paths to
the kerberos libraries and includes.


87268 03-Dec-2001 markm

Merge from master (crypto) telnet. WARNS fixes for alpha.


87156 30-Nov-2001 markm

Merge the (in)complete ANSIfication work from src/crypto/telnet.


87154 30-Nov-2001 markm

After running "make unifdef", commit the result. This code is now
a complete subset of the crypto (master) code.


87147 30-Nov-2001 markm

Diff-reduce WRT src/secure/*telnet*/Makefile.

Also, add an "unifdef:" target, so that the telnet sources can
be remade from the crypto sources in src/crypto/telnet.


85026 16-Oct-2001 sobomax

Use strlcpy(3) instead of strcpy(3) to copy optarg into a fixed-size buffer.

MFC after: 2 weeks


82497 29-Aug-2001 markm

Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.


81964 20-Aug-2001 markm

Code merge and diff reduction between this and crypto telnet.

Also remove useless AUTHENTICATION code. We have never compiled this
here, and it is doubtful that it even works without crypto.


81663 15-Aug-2001 horikawa

Removal of following export controll related sentences:
o This option is not available outside of the United States and Canada.
o Because of export controls, TELNET ENCRYPT option is not supported outside
of the United States and Canada.

src/crypto/README revision 1.5 commit log says:
> Crypto sources are no longer export controlled:
> Explain, why crypto sources are still in crypto/.
and actually telnet encryption is used outside of US and Canada now.

Pointed out by: OHSAWA Chitoshi <ohsawa@catv1.ccn-net.ne.jp>
Reviewed by:no objection on doc


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79535 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


79454 09-Jul-2001 dd

mdoc(7) police: remove extraneous .Pp before and/or after .Sh.


79452 09-Jul-2001 brian

Fix the type of the NULL arg to execl()

Idea from: Theo de Raadt <deraadt@openbsd.org>


79321 05-Jul-2001 ru

mdoc(7) police: moved -u down, fixed markup, removed hard sentence break.


79320 05-Jul-2001 ru

Document -u in the usage().
Make usage fit on a standard 80-column display.


77092 23-May-2001 dillon

A feature to allow one to telnet to a unix domain socket.

Obtained from: Lyndon Nerenberg <lyndon@orthanc.ab.ca>


75042 31-Mar-2001 ru

libtelnet.a is gone; add a special hack for `make release' fixit floppy.


74928 28-Mar-2001 ru

Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.

Approved by: markm


72634 18-Feb-2001 luigi

Do not compile INET6 support if RELEASE_CRUNCH is defined
(used by install floppy/picobsd)


72093 06-Feb-2001 asmodai

Fix typo: compatability -> compatibility.

Compatability is not an existing english word.


72090 06-Feb-2001 asmodai

Fix typo: seperate -> separate.

Seperate does not exist in the english language.

Also add $FreeBSD$ to README.


72082 06-Feb-2001 asmodai

Fix typo: wierd -> weird.

There is no such thing as wierd in the english language.


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


70410 27-Dec-2000 ru

Prepare for mdoc(7)NG.


69223 26-Nov-2000 kris

Correct definition of MAXHOSTNAMELEN in ifdef'ed code.

Submitted by: Edwin Groothuis <mavetju@chello.nl>
PR: bin/22787


68963 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


68891 19-Nov-2000 kris

Fix a buffer overflow from a long local hostname.

Obtained from: OpenBSD


66151 20-Sep-2000 imp

Fix buffer overflow when DISPLAY is longer than 43 characters. This
is not exploitable because telnet doesn't run with elevated privs.

Didn't fix all the other potential buffer overflows. Would be a good
task for someone who has lots of time to carefully study each case
because cut and paste solutions are dangerous for this code base.

Added $FreeBSD$ in the same way that command.c did it.


65428 04-Sep-2000 imp

getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.


63662 20-Jul-2000 ume

Fix buffer size of ALIGNed buffer.

PR: bin/20053
Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>


62789 07-Jul-2000 ume

One more EAI_NONAME -> EAI_NODATA issue.


62788 07-Jul-2000 ume

Make telnet -s work. It is corresponding to EAI_NONAME -> EAI_NODATA
change (getaddrinfo.c rev 1.12).


62633 05-Jul-2000 itojun

simplify and correct name resolution in tn().
XXX what is the goal of af_switch()? it seems to me it is not necessary
any more with getaddrinfo(3) fix for correct name-resolution ordering.
comments? >shin


61592 12-Jun-2000 ume

Mention about -4 and -6 options.


58679 27-Mar-2000 bde

Fixed misspelling of DPADD as DPADDA.

Fixed some misformattings.


57719 03-Mar-2000 shin

CMSG_XXX macros alignment fixes to follow RFC2292.

Approved by: jkh

Submitted by: Partly from tech@openbsd
Reviewed by: itojun


57450 24-Feb-2000 markm

Use libcrypto in place of libdes.


57343 19-Feb-2000 shin

Use static buffer to save source route hostnames.

Approved by: jkh


57342 19-Feb-2000 shin

Print "Trying ..." for each host. Also cleanups for error printing.

Approved by: jkh

Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>


57233 15-Feb-2000 shin

Fix bugs in telnet.

Sorry there were still several bugs.
-error retry at af missmatch was incomplete.
-af matching for source addr option was wrong
-socket was not freed at retry.

Approved by: jkh


57125 10-Feb-2000 shin

Add more dual stack consideration.

-Should retry as much as possible when some of source
routing intermediate hosts' address families missmatch
happened.
(such as when a host has only A record, and another host
has each of A and AAAA record.)

-Should retry as much as possible when dest addr and
source addr(specified with -s option) address family
missmatch happend

Approved by: jkh


57016 07-Feb-2000 shin

Fix telnet core dump at invalid service name specified.
Added an error check to avoid it.

Approved by: jkh

Submitted by: Robert Muir <rmuir@gibralter.net>


56870 29-Jan-2000 shin

Add NI_NAMEREQD flag to getnameinfo() call. Without this flag,
getnameinfo() don't return error at name resolving failure.
But it is used at doaddrlookup(-N) case in telnet, error need to be
returned to correctly initialize hostname buffer.

Discovered at checking recent KAME repository change, noticed by itojun.


56812 29-Jan-2000 shin

fix breakage of make release.

Confirmed by: German Tischler <tanis@gaspode.franken.de>


56668 27-Jan-2000 shin

another tcp apps IPv6 updates.(should be make world safe)
ftp, telnet, ftpd, faithd
also telnet related sync with crypto, secure, kerberosIV

Obtained from: KAME project


50646 30-Aug-1999 peter

Nearly missed this one. Turn off -DTERMCAP otherwise it defines a bunch
of conflicting symbols with ncurses.


50477 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48917 19-Jul-1999 nik

Document the "skey" command in telnet(1).

PR: docs/12360
Submitted by: kjm@rins.ryukoku.ac.jp (KOJIMA Hajime)


47970 17-Jun-1999 ru

Add "-N" option to the SYNOPSIS and usage().


47947 16-Jun-1999 ru

Add "-s src_addr" option to allow setting of the source IP address.


47911 14-Jun-1999 ru

It was possible to circumvent telnet's security ``-E'' (no escape at all)
option by running it with ``-8 -E'' and passing it 0xff character.

PR: 6317
Reviewed by: des, David Borman <dab@bsdi.com> (the author)


41805 14-Dec-1998 billf

Add "-N" option to supress reverse name lookup.
This comes in really handy when you're telneting the broken DNS server by
IP.

PR: bin/8698


37453 06-Jul-1998 bde

Fixed printf format errors.


36913 12-Jun-1998 peter

#include <arpa/inet.h>


36792 09-Jun-1998 imp

Don't assume that hp->h_lenght == 4. Be conservative in its use.
Submitted by: J. Assange a long time ago.


34896 26-Mar-1998 markm

Remove unneeded crud.


33646 20-Feb-1998 jb

Add #include <stdlib.h> to get prototype for malloc().


33645 20-Feb-1998 jb

Add #include <string.h> to get prototypes.


32024 27-Dec-1997 steve

Fix some minor formatting nits.

PR: 5373
Submitted by: Matthew Hunt <mph@pobox.com>


31115 11-Nov-1997 steve

Correct some anomalies in the man page.

PR: 3808
Parially submitted by: Takeshi MUTOH <mutoh@info.nara-k.ac.jp>


28200 14-Aug-1997 charnier

Hardcode progname in usage string.


27234 06-Jul-1997 bde

This commit was generated by cvs2svn to compensate for changes in r27233,
which included commits to RCS files with non-trunk default branches.


24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21748 15-Jan-1997 wosch

Sort cross references.


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


21639 13-Jan-1997 peter

Report the reason why select unexpectedly failed..


21467 10-Jan-1997 ache

Make 'skey' command visible through 'help'


21466 10-Jan-1997 ache

Use -DSKEY instead of wrong -DPATH_SKEY


21405 07-Jan-1997 pst

Import a few relatively minor fixes from current Borman telnet.
Add some buffer overrun fixes from OpenBSD and myself.
Add skey calculator kludge from OpenBSD.

TODO: do a real merge of dab's sources... probably just make telnet and
telnetd contrib software.

Obtained from: OpenBSD, dab@bsdi.com


18718 05-Oct-1996 wosch

delete doubled words, e.g.: "the the" -> "the"


18375 19-Sep-1996 phk

Make telnet a synonym for open


18050 05-Sep-1996 bde

Fixed DPADD.


15996 30-May-1996 pst

Remove obsolete SOCKSv4 support


15358 23-Apr-1996 pst

Add support for socks


13683 29-Jan-1996 wosch

Section SEE ALSO complete


10396 28-Aug-1995 jkh

Oh foo. I should a) learn to read. b) learn to think. :-)
Telnet has nothing to do with this, it's telnetd and telnetd
doesn't use KLUDGELINEMODE so that theory is washed up. Anyway,
back out previous commit and slink away with red face.


10394 28-Aug-1995 jkh

Remove -DKLUDGELINEMODE again; it's breaking things and Paul T. says
it's a bug anyway.


9856 02-Aug-1995 ache

Use the same DECODE_BAUD trick like in new telnet to set
termios speed
Obtained from: Pre-Lite2 telnet


8874 30-May-1995 rgrimes

Remove trailing whitespace.


8533 15-May-1995 dg

Use symbolic "IPTOS_LOWDELAY" instead of octal bit value for this socket
option. The bit value was wrong.


2315 27-Aug-1994 csgr

Fix big f*ckup by doing "make nocrypt"
(Don't think I don't realize what a big f*ckup this was.)
Submitted by: geoff.


1871 05-Aug-1994 wollman

Don't do Kerberos yet, we aren't ready for it.


1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.