OpenBSD CVS

CVS log for src/usr.bin/telnet/commands.c


[BACK] Up to [local] / src / usr.bin / telnet

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.88 / (download) - annotate - [select for diffs], Mon Dec 26 19:16:03 2022 UTC (16 months, 3 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

spelling fixes; from paul tagliamonte
amendments to his diff are noted on tech

Revision 1.87 / (download) - annotate - [select for diffs], Fri Jun 28 13:35:04 2019 UTC (4 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.86: +6 -6 lines
Diff to previous 1.86 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.86 / (download) - annotate - [select for diffs], Sun Sep 30 14:35:32 2018 UTC (5 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.85: +18 -6 lines
Diff to previous 1.85 (colored)

telnet argv parsing overflow; from YangX92
ok millert

Revision 1.85 / (download) - annotate - [select for diffs], Wed Jul 19 12:25:52 2017 UTC (6 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.84: +1 -3 lines
Diff to previous 1.84 (colored)

A few cleanups.  This only needs to operate on systems with SIGWINCH,
SIGINFO, and Bxxxx values that equal xxxx.
ok tom millert

Revision 1.84 / (download) - annotate - [select for diffs], Tue May 3 02:06:54 2016 UTC (8 years ago) by awolk
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.83: +1 -9 lines
Diff to previous 1.83 (colored)

telnet should not verify if hostname is a fully qualified domain

telnet would perform a gethostbyname on close/quit commands
when the machine hostname is not a fully qualified domain.
This behavior added on 12-March-98 breaks the current pledge
that "dns" operations are not needed after establishing
a connection leading to a coredump from telnet when
quiting or closing an existing connection.

OK chris@

Revision 1.83 / (download) - annotate - [select for diffs], Wed Mar 16 15:41:11 2016 UTC (8 years, 2 months ago) by krw
Branch: MAIN
Changes since 1.82: +2 -2 lines
Diff to previous 1.82 (colored)

More "(<blah> *)0" -> NULL, avoiding any stdarg functions.

Feedback millert@ kettenis@

Revision 1.82 / (download) - annotate - [select for diffs], Wed Dec 9 19:39:10 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.81: +5 -9 lines
Diff to previous 1.81 (colored)

Remove NULL-checks before free(). ok tb@

Revision 1.81 / (download) - annotate - [select for diffs], Tue Nov 24 05:06:24 2015 UTC (8 years, 5 months ago) by beck
Branch: MAIN
Changes since 1.80: +5 -1 lines
Diff to previous 1.80 (colored)

Don't support repeated connections - avoids pledge problems
ok deraadt@, "god please commit before I see any more" tedu@

Revision 1.80 / (download) - annotate - [select for diffs], Fri Nov 20 12:43:37 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

Replace hardcoded "2" with SHUT_RDWR; from Ricardo Mestre

Revision 1.79 / (download) - annotate - [select for diffs], Fri Nov 13 17:04:48 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.78: +1 -5 lines
Diff to previous 1.78 (colored)

Use setrtable() for the entire process, rather than doing it for the
socket later.  Same idea as in nc(1).

Revision 1.78 / (download) - annotate - [select for diffs], Fri Nov 13 17:01:12 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.77: +1 -24 lines
Diff to previous 1.77 (colored)

Remove support for the debug command; noone needs setsockopt SO_DEBUG

Revision 1.77 / (download) - annotate - [select for diffs], Fri Nov 13 16:53:46 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.76: +1 -2 lines
Diff to previous 1.76 (colored)

Delete tracefile command.  Tracefiles can now only be specified at
program startup.  Who uses that?  Noone...
ok millert

Revision 1.76 / (download) - annotate - [select for diffs], Fri Nov 13 16:50:03 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.75: +1 -57 lines
Diff to previous 1.75 (colored)

remove support for !shell
ok millert

Revision 1.75 / (download) - annotate - [select for diffs], Fri Nov 13 16:46:30 2015 UTC (8 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.74: +2 -39 lines
Diff to previous 1.74 (colored)

remove skey support
ok millert

Revision 1.74 / (download) - annotate - [select for diffs], Mon Oct 26 00:33:03 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.73: +14 -11 lines
Diff to previous 1.73 (colored)

Set low-delay traffic class for IPv6 connections as well

While here, there is no option to pass a different tos, and no other
use of the "tos" variable out of tn(), so move the "tos" variable in tn()
and assign it the right value from the start.

ok millert@

Revision 1.73 / (download) - annotate - [select for diffs], Sun Oct 25 14:42:02 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.72: +2 -7 lines
Diff to previous 1.72 (colored)

Kill unused local var, and reorder while here.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Oct 25 14:11:37 2015 UTC (8 years, 6 months ago) by jca
Branch: MAIN
Changes since 1.71: +20 -189 lines
Diff to previous 1.71 (colored)

Kill IP Source Route support, unusable since 1998.

ok sthen@ guenther@ mpi@ millert@

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jan 16 06:40:13 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.70: +4 -3 lines
Diff to previous 1.70 (colored)

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible.  Annotate <sys/param.h> lines with their current reasons.  Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc.  Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution.  These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

Revision 1.70 / (download) - annotate - [select for diffs], Tue Sep 9 03:41:08 2014 UTC (9 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.69: +34 -35 lines
Diff to previous 1.69 (colored)

Eliminate a pile of casts that were superfluous or wrong, or that were
the result of bad type choices, particularly (unsigned char *) vs
(const char *).  Also, use reallocarray().

Revision 1.69 / (download) - annotate - [select for diffs], Tue Jul 22 07:30:24 2014 UTC (9 years, 9 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.68: +112 -179 lines
Diff to previous 1.68 (colored)

use ansi style function declarations
with suggestions from and ok guenther@

Revision 1.68 / (download) - annotate - [select for diffs], Sun Jul 20 12:08:55 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.67: +74 -84 lines
Diff to previous 1.67 (colored)

Eliminate silly call() routine that fakes up internal calls as if
the user typed in undocumented arguments by splitting two functions
and doing normal (shock!) C calls.

Move extern declarations to externs.h
Eliminate another function cast

Revision 1.67 / (download) - annotate - [select for diffs], Sun Jul 20 10:55:26 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.66: +21 -13 lines
Diff to previous 1.66 (colored)

Mark a slurry of functions as static
Eliminate two more trivial wrappers

Revision 1.66 / (download) - annotate - [select for diffs], Sun Jul 20 10:18:10 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.65: +5 -20 lines
Diff to previous 1.65 (colored)

Kill lint comments; mark ExitString() as __dead

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jul 20 09:59:42 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.64: +11 -13 lines
Diff to previous 1.64 (colored)

Switch from memmove() to memcpy() where appropriate; simplify address
parsing logic; eliminate an inefficient use of MIN() macro

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 20 09:31:25 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.63: +1 -5 lines
Diff to previous 1.63 (colored)

VSUSP and SIGTSTP are required by POSIX

Revision 1.63 / (download) - annotate - [select for diffs], Sun Jul 20 08:56:47 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.62: +25 -19 lines
Diff to previous 1.62 (colored)

Add prototypes to some function callbacks and fix the type errors that
this reveals.
Make NetTrace static to utilities.c

Revision 1.62 / (download) - annotate - [select for diffs], Sun Jul 20 08:12:45 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.61: +6 -1 lines
Diff to previous 1.61 (colored)

More encryption tentacles: intr_happened and intr_waiting vanish
Push more includes into .c files
Make ring.c only need ring.h

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jul 20 07:35:04 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Eliminate trivial wrappers TerminalWrite() and TerminalRead()
Replace TerminalFlushOutput() with tcflush().
Replace TerminalAutoFlush() with check of tty's NOFLSH flag as
	documented in the manpage.
Push <netdb.h> into .c files

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jul 20 06:39:41 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.59: +7 -5 lines
Diff to previous 1.59 (colored)

Correctly cast to unsigned char for ctype functions/macros
Push <ctype.h> and <unistd.h> into the .c files

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jul 20 05:22:02 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.58: +11 -9 lines
Diff to previous 1.58 (colored)

Simplify #includes, start pushing them into the .c files, eliminate
extern declarations from .c files that duplicate those in .h files,
start marking functions with __dead

Revision 1.58 / (download) - annotate - [select for diffs], Sun Jul 20 04:07:16 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

The manpage claims the -a option uses getlogin(2), so do so.  Also,
ignore its value if it returns a user that doesn't exit

Revision 1.57 / (download) - annotate - [select for diffs], Sun Jul 20 04:00:47 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

The only authentication info now is the login name

Revision 1.56 / (download) - annotate - [select for diffs], Sat Jul 19 23:50:38 2014 UTC (9 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.55: +12 -465 lines
Diff to previous 1.55 (colored)

Flense the telnet code base of unwanted ifdefs: authentication/encryption
tn3270, sgtty, pre-POSIX and other ancient system support, etc.  Brings up
to date the manpage with what we support.

ok matthieu@ beck@ jmc@ millert@ deraadt@ okan@

Revision 1.55 / (download) - annotate - [select for diffs], Sat Oct 26 21:33:29 2013 UTC (10 years, 6 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored)

Only use setsockopt(..SO_RTABLE..) if the -V flag is given to nc/telnet,
same style as traceroute6 (change to int and use -1 as a flag, so rtable 0
can still be used as an explicit parameter).

Revision 1.54 / (download) - annotate - [select for diffs], Mon Oct 21 09:02:37 2013 UTC (10 years, 7 months ago) by phessler
Branch: MAIN
Changes since 1.53: +4 -6 lines
Diff to previous 1.53 (colored)

Allow a user to switch to rdomain zero

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jun 21 17:31:07 2011 UTC (12 years, 11 months ago) by mikeb
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Convert SO_RTABLE's protocol level to the SOL_SOCKET;  ok claudio

Revision 1.52 / (download) - annotate - [select for diffs], Sat Jul 3 04:44:51 2010 UTC (13 years, 10 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.51: +5 -5 lines
Diff to previous 1.51 (colored)

Fix the naming of interfaces and variables for rdomains and rtables
and make it possible to bind sockets (including listening sockets!)
to rtables and not just rdomains.  This changes the name of the
system calls, socket option, and ioctl.  After building with this
you should remove the files /usr/share/man/cat2/[gs]etrdomain.0.

Since this removes the existing [gs]etrdomain() system calls, the
libc major is bumped.

Written by claudio@, criticized^Wcritiqued by me

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jun 5 00:20:46 2009 UTC (14 years, 11 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.50: +7 -1 lines
Diff to previous 1.50 (colored)

Last but not least. Telnet -V rdomain to connect to systems in other routing
domains.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Apr 27 06:08:10 2009 UTC (15 years ago) by matthieu
Branch: MAIN
Changes since 1.49: +1 -2 lines
Diff to previous 1.49 (colored)

Remove unused _hostname[] variable. ok millert@

Revision 1.49 / (download) - annotate - [select for diffs], Sat Jan 14 21:21:46 2006 UTC (18 years, 4 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.48: +3 -1 lines
Diff to previous 1.48 (colored)

Properly handle failure binding to a local interface (using the -b
option).  Problem found by David Hill <dhill at mindcry dot org>;
ok millert@

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Tue Mar 29 20:20:10 2005 UTC (19 years, 1 month ago) by brad
Branch: OPENBSD_3_5
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

MFC:
Fix by otto@

- only send exported vars (based on a diff from Solar Designer)
- fix some buffer overflows (also some Solar Designer input)

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Tue Mar 29 19:49:10 2005 UTC (19 years, 1 month ago) by brad
Branch: OPENBSD_3_6
Changes since 1.46: +4 -3 lines
Diff to previous 1.46 (colored) next main 1.47 (colored)

MFC:
Fix by otto@

- only send exported vars (based on a diff from Solar Designer)
- fix some buffer overflows (also some Solar Designer input)

Revision 1.48 / (download) - annotate - [select for diffs], Sun Feb 27 15:46:42 2005 UTC (19 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.47: +4 -3 lines
Diff to previous 1.47 (colored)

- only send exported vars (based on a diff from Solar Designer)
- fix some buffer overflows (also some Solar Designer input)

ok deraadt@ cloder@

Revision 1.47 / (download) - annotate - [select for diffs], Wed Nov 17 01:47:20 2004 UTC (19 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.46: +1 -5 lines
Diff to previous 1.46 (colored)

remove NI_WITHSCOPEID (which is not standard)

Revision 1.46 / (download) - annotate - [select for diffs], Sun Dec 28 21:53:01 2003 UTC (20 years, 4 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_5_BASE
Branch point for: OPENBSD_3_6, OPENBSD_3_5
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

Introduce -4 and -6: options to force usage of IPv4 or IPv6 only.
From PR 1974.

ok henning@ jose@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jun 3 02:56:18 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.44: +2 -6 lines
Diff to previous 1.44 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.44 / (download) - annotate - [select for diffs], Fri Apr 25 20:07:09 2003 UTC (21 years ago) by pvalchev
Branch: MAIN
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored)

check asprintf return value for error, as the pointer is not guaranteed
to be NULL in such case; ok millert

Revision 1.43 / (download) - annotate - [select for diffs], Thu Apr 3 12:05:58 2003 UTC (21 years, 1 month ago) by hin
Branch: MAIN
Changes since 1.42: +5 -5 lines
Diff to previous 1.42 (colored)

strcpy -> strlcpy
strcat -> strlcat

ok millert@

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jun 12 06:07:16 2002 UTC (21 years, 11 months ago) by mpech
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.41: +3 -3 lines
Diff to previous 1.41 (colored)

a real pid_t cleanup.

espie@ ok for make/,
deraadt@ one extra eye,
millert@ ok

Revision 1.41 / (download) - annotate - [select for diffs], Sun Feb 17 17:20:49 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.40: +15 -15 lines
Diff to previous 1.40 (colored)

telnet used a P macro instead of __P -- g/c that too.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Feb 16 21:27:54 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

Part one of userland __P removal.  Done with a simple regexp with some minor hand editing to make comments line up correctly.  Another pass is forthcoming that handles the cases that could not be done automatically.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Nov 19 19:02:16 2001 UTC (22 years, 6 months ago) by mpech
Branch: MAIN
Changes since 1.38: +29 -29 lines
Diff to previous 1.38 (colored)

kill more registers

millert@ ok

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 3 05:28:51 2001 UTC (22 years, 8 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.37: +4 -2 lines
Diff to previous 1.37 (colored)

repair a bug in 1.23, where "telnetport" was incorrectly set.
From: Pekka Savola <pekkas@netcore.fi>

Revision 1.37 / (download) - annotate - [select for diffs], Thu Jul 12 05:17:22 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

first pass at a -Wall cleanup

Revision 1.36 / (download) - annotate - [select for diffs], Mon Jul 9 07:04:54 2001 UTC (22 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

correct type on last arg to execl(); nordin@cse.ogi.edu

Revision 1.35 / (download) - annotate - [select for diffs], Mon Apr 30 10:00:04 2001 UTC (23 years ago) by markus
Branch: MAIN
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored)

don't freeaddrinfo if getaddrinfo fails; ok deraadt@,itojun@

Revision 1.34 / (download) - annotate - [select for diffs], Wed Nov 8 21:49:44 2000 UTC (23 years, 6 months ago) by aaron
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored)

Fix a buf oflow, only exposed because a user happened to have a host with a
resolvable name > 63 characters and specified a port number on the command
line; spotted by steve@tightrope.demon.co.uk, who provided a useful traceback.

Revision 1.33 / (download) - annotate - [select for diffs], Tue Oct 10 15:41:10 2000 UTC (23 years, 7 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.32: +1 -9 lines
Diff to previous 1.32 (colored)

Use curses, not ocurses and thus setupterm() not tgetent().  This means
we no longer need to have a faked up telnet_setupterm().

Remove some unused variables and add missing err.h include in sys_bsd.c

Revision 1.32 / (download) - annotate - [select for diffs], Sun Aug 13 19:41:13 2000 UTC (23 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

recover 1.29 -> 1.30

Revision 1.31 / (download) - annotate - [select for diffs], Sun Aug 13 19:39:01 2000 UTC (23 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.30: +20 -16 lines
Diff to previous 1.30 (colored)

properly look at error code from getnameinfo(3)

Revision 1.30 / (download) - annotate - [select for diffs], Sun Aug 13 08:37:07 2000 UTC (23 years, 9 months ago) by niklas
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

telnet -b broke when getaddrinfo conversion was done,
bind(2) was done on the dst addr instead of the src.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Aug 2 04:10:49 2000 UTC (23 years, 9 months ago) by millert
Branch: MAIN
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

$HOME paranoia: never use getenv("HOME") w/o checking for NULL and non-zero

Revision 1.28 / (download) - annotate - [select for diffs], Sun Apr 30 23:57:08 2000 UTC (24 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.27: +8 -3 lines
Diff to previous 1.27 (colored)

If getaddrinfo() fails:
o Only call herror() if h_errno != 0
o if error == EAI_SERVICE say "bad port" since the generic error,
"service not supported for ai_socktype" is incomprehensible to most
users.
o Use warnx(), not warn() since this is not a case where errno is likely
to be relevant.
Ok'd by Theo

Revision 1.27 / (download) - annotate - [select for diffs], Sat Feb 5 18:17:56 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.26: +7 -2 lines
Diff to previous 1.26 (colored)

show scopeid on "Trying foo...".

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 29 16:07:08 2000 UTC (24 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.25: +1 -32 lines
Diff to previous 1.25 (colored)

remove #if 0'ed portion (not necessary due to use of getaddrinfo)

Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 20 09:43:01 1999 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

it looks perror("") has no effect in most cases.
use strerror(errno) and format it on our own.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 11 22:12:00 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Add a perror() in reporting failure to connect.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 11 09:08:08 1999 UTC (24 years, 5 months ago) by itojun
Branch: MAIN
Changes since 1.22: +76 -175 lines
Diff to previous 1.22 (colored)

IPv6/IPv4 dual stack support.  uses getaddrinfo() and getnameinfo()
throughout the code so please look at it with care (for auditing).

XXX source routing is not available for IPv6
(even before I modify, it was not available for IPv4 anyways)

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 7 01:10:29 1999 UTC (24 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +1 -17 lines
Diff to previous 1.21 (colored)

extra setuid calls go away

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jul 20 12:50:33 1999 UTC (24 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.20: +6 -3 lines
Diff to previous 1.20 (colored)

skey help; freebsd

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jan 4 07:55:05 1999 UTC (25 years, 4 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

spelling

Revision 1.19 / (download) - annotate - [select for diffs], Thu Jul 16 18:55:59 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.18: +3 -3 lines
Diff to previous 1.18 (colored)

terminate nicer

Revision 1.18 / (download) - annotate - [select for diffs], Thu Jul 9 06:32:10 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.17: +4 -5 lines
Diff to previous 1.17 (colored)

use MAXHOSTNAMELEN

Revision 1.17 / (download) - annotate - [select for diffs], Wed Jul 1 19:31:12 1998 UTC (25 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +1 -3 lines
Diff to previous 1.16 (colored)

delete unknown error

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 23 12:15:20 1998 UTC (26 years ago) by deraadt
Branch: MAIN
Changes since 1.15: +21 -5 lines
Diff to previous 1.15 (colored)

fix multi-address host connects; cstone@pobox.com
print new address as it is tried; deraadt

Revision 1.15 / (download) - annotate - [select for diffs], Fri May 15 03:16:35 1998 UTC (26 years ago) by art
Branch: MAIN
Changes since 1.14: +14 -14 lines
Diff to previous 1.14 (colored)

cleanup warnings.

Revision 1.14 / (download) - annotate - [select for diffs], Fri May 15 01:26:09 1998 UTC (26 years ago) by art
Branch: MAIN
Changes since 1.13: +11 -5 lines
Diff to previous 1.13 (colored)

check mallocs

Revision 1.13 / (download) - annotate - [select for diffs], Tue Apr 7 20:01:06 1998 UTC (26 years, 1 month ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.12: +8 -1 lines
Diff to previous 1.12 (colored)

 - show usage for the encrypt command when there are no arguments.
 - don't default to autologin and autoencrypt when kerberos is disabled.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Mar 18 21:21:40 1998 UTC (26 years, 2 months ago) by art
Branch: MAIN
Changes since 1.11: +5 -1 lines
Diff to previous 1.11 (colored)

fix connecting to ip-numbers

Revision 1.11 / (download) - annotate - [select for diffs], Thu Mar 12 17:31:30 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

repair tn3270

Revision 1.10 / (download) - annotate - [select for diffs], Thu Mar 12 04:57:29 1998 UTC (26 years, 2 months ago) by art
Branch: MAIN
Changes since 1.9: +616 -497 lines
Diff to previous 1.9 (colored)

encryption support from kth-krb 0.9.8 (kerberos only)
plus some tweaks for better binary/8-bit support.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Dec 22 03:26:08 1996 UTC (27 years, 5 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.8: +10 -2 lines
Diff to previous 1.8 (colored)

Deal with _POSIX_SAVED_IDS when relinquishing privileges

Revision 1.8 / (download) - annotate - [select for diffs], Fri Dec 6 15:21:53 1996 UTC (27 years, 5 months ago) by robin
Branch: MAIN
Changes since 1.7: +33 -23 lines
Diff to previous 1.7 (colored)

Fix bug where one could ``send'' various TELNET commands from the telnet
command prompt, prior to being connected to a remote host.

The affected commands were:

  set       binary | inbinary | outbinary
  toggle    binary | inbinary | outbinary

Revision 1.7 / (download) - annotate - [select for diffs], Mon Oct 28 00:54:10 1996 UTC (27 years, 6 months ago) by millert
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Safe $HOME handling.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Sep 5 09:10:02 1996 UTC (27 years, 8 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.5: +38 -2 lines
Diff to previous 1.5 (colored)

skey command for inline use; by brian@saturn.net (but i had to fix his sleep deprived code)

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jul 3 14:01:55 1996 UTC (27 years, 10 months ago) by niklas
Branch: MAIN
Changes since 1.4: +45 -5 lines
Diff to previous 1.4 (colored)

Add a -b option that takes a hostname or IP-address as an argument.
This address is bound to the local socket of the TCP connection and is
useful for talking to services which does authentication based on IP-
addresses.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 21 23:44:11 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.3: +9 -5 lines
Diff to previous 1.3 (colored)

sync to netbsd 960418

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 27 19:32:58 1996 UTC (28 years, 1 month ago) by niklas
Branch: MAIN
Changes since 1.2: +59 -44 lines
Diff to previous 1.2 (colored)

From NetBSD: merge of 960317

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jan 5 16:41:21 1996 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

from tls; contrary to unpopular opinion, "help" is a perfectly valid hostname

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:46:14 1995 UTC (28 years, 7 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:46:14 1995 UTC (28 years, 7 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.