mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
itojun
e8834c8cd2
avoid memory leak on realloc() failure.
1999-12-30 09:52:03 +00:00
itojun
1e75e9ee55
remove setuid(getuid()). they are unnecessary as noone is going to
...
setuid telnet(1).
i'm not sure why it is here (maybe someone reused this code from
other setuid'ed program, or someone cut-and-pasted the code from
somewhere else?), it was from revision 1.1 (= 4.4BSD).
briefly discussed in: tech-net?
1999-12-13 04:52:20 +00:00
itojun
6ceceb260b
clarify getaddrinfo() loop. try to contact all possible addresses
...
unless we experience fatal error.
XXX changed location of setuid(getuid()), may need someone's review.
1999-12-03 06:52:13 +00:00
itojun
4b402f1483
clarify reverse address lookup (-N). AI_NUMERICHOST is for forward lookup.
...
XXX RFC2553 does not say that AI_CANONNAME means reverse lookup.
we need to check if getaddrinfo(3) implementation is correct.
1999-12-03 06:34:24 +00:00
msaitoh
44181778bd
fix following sequence:
...
telnet localhost
cat (no argument)
control-C
(not returned to the shell prompt)
(push enter key)
(returned to prompt)
1999-11-26 07:33:52 +00:00
soren
30d18a154c
Remove extraneous colons and newlines from perror(3) arguments.
1999-09-30 12:35:52 +00:00
abs
8714299f16
Add -N option (numeric host address) - idea taken from FreeBSD.
...
Fix bug where -E8 would still pick up 0xFF as escape (again from FreeBSD)
1999-07-28 06:35:15 +00:00
jtk
be9d0297fd
fix handling of port number preceded by minus sign to restore documented behavior
1999-07-21 13:24:56 +00:00
mrg
51a96a002f
optionally include CRYPTOPATH Makefile.frag files.
1999-07-20 09:35:18 +00:00
itojun
6ae77d03dc
clarify socket-connect trial loop. fix freeaddrinfo().
...
adjust indentation (commands.c uses sw=4 ts=8).
1999-07-14 20:47:41 +00:00
thorpej
9630ed475e
Use bsd.crypto.mk.
1999-07-12 22:11:37 +00:00
thorpej
7550139fd7
Whitespace cleanup.
1999-07-12 22:10:52 +00:00
thorpej
3e29511219
Simply a construct in usage().
1999-07-11 19:30:39 +00:00
itojun
e1b3627397
bark if mismatched address families are found on source route.
1999-07-02 15:11:53 +00:00
itojun
9bee021415
IPv6-ready telnet.
...
source route (telnet @localhost@localhost) works for IPv6 as well.
1999-07-02 15:09:10 +00:00
thorpej
1cfcfaddc7
Treat crypto-us like domestic.
1999-06-07 00:53:09 +00:00
garbled
9e44e9b578
More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
...
so we shouldn't override it with versions in the manpages. Many more to
come.
1999-03-22 18:16:34 +00:00
mycroft
a1c657fe56
Clean up SYNOPSIS formatting.
1999-03-07 11:29:58 +00:00
cjs
17652c59c0
Descend on obj, as well as clean, etc.
1999-01-03 21:57:49 +00:00
mcr
c441f5e810
Added an #undef. This, and previous revision fixes PR bin/5374
1998-12-22 05:27:35 +00:00
mcr
851f23b927
fixed call to select to keep track of the highest numbered file
...
descriptor. Also removed some redundant code that was #ifdef TN3270
(the code was the same on both sides of the #ifdef)
1998-12-22 05:26:22 +00:00
christos
f9688c3369
Make sure termio is defined to termios.
1998-12-20 14:48:33 +00:00
christos
81c93f4c32
- synchronize with the domestic version
...
- setupterm -> setup_term
- char -> unsigned char
1998-11-06 19:54:18 +00:00
lukem
72549586a8
distclean is a synonym for cleandir
1998-09-05 14:57:41 +00:00
scottr
ebc77f0f62
Ack! I misunderstood a problem reported to me. We don't need to do
...
anything special to handle obj directories; bsd.man.mk does it for us
already. Back out that part of the previos commit.
1998-07-27 04:45:23 +00:00
scottr
b894fb7eed
Fix two problems with my previous change:
...
- We must include bsd.own.mk to get EXPORTABLE_SYSTEM from mk.conf.
Noted by Bernd Ernesti.
- If we're only generating man pages, we should deal with obj
directories as appropriate. Both Perry Metzger and I found this
independently.
This completes the tasks necessary to close PR 5519.
1998-07-27 04:16:19 +00:00
mycroft
a405bce56c
const poisoning.
1998-07-26 22:26:29 +00:00
scottr
8f01a044f4
Unlike other domestic bits, telnet and telnetd are never built as a part
...
of the domestic build process. No domestic program actually builds its
own man pages but instead relies on those built in the exportable tree.
The result is missing telnet(1) and telnet(8) pages.
Fix this problem descending into the telnet and telnetd directories
regardless of whether we're doing an exportable build or not. Once there,
we generate only the man pages if we're building a non-exportable system.
1998-07-22 22:30:07 +00:00
msaitoh
4944940fcf
Declare ints, too, don't default them.
1998-07-09 18:32:52 +00:00
fvdl
d310ce0d42
Fix pasto in previous.
1998-07-07 13:20:12 +00:00
mrg
32f519716b
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:56:06 +00:00
mrg
c0391a5b14
use static int instead of static
1998-03-30 02:30:08 +00:00
thorpej
e0008f3a90
Avoid GCC warning on m68k.
1998-03-05 08:10:06 +00:00
christos
346d9496c8
Adjust for tn3270 cleanup.
1998-03-04 13:51:57 +00:00
thorpej
292d795f97
Add a cast to make the compiler happy on the Alpha.
1998-03-03 07:32:46 +00:00
enami
ff4977ead8
Fix compile error of tn3270/tn3270; getpgrp() takes no argument.
1998-02-28 12:36:20 +00:00
enami
d4e6742e26
Include unistd.h to import declaration of getopt(3).
1998-02-28 12:16:56 +00:00
christos
434ea11b22
WARNSify and fix problems passing int * -> long *
1998-02-27 10:44:12 +00:00
kleink
3b80d582e2
Include <sys/time.h>, which is the canonical location of the select()
...
prototype and assorted data type definitions.
1998-02-17 11:38:26 +00:00
lukem
3e8e744696
getopt returns -1 not EOF
1997-11-01 06:49:14 +00:00
lukem
8ba07ab0b3
use CPPFLAGS instead of CFLAGS
1997-10-24 09:00:17 +00:00
lukem
6a1b9dc4b7
WARNS=0 for now (3rdparty product)
1997-10-20 00:37:47 +00:00
mikel
b606e6941b
fix some minor macro usage and other bugs; some from Saitoh Masanobu
...
in PR misc/3656, others by myself.
1997-06-03 06:31:20 +00:00
mycroft
eed746a9eb
Don't interpret _POSIX_VDISABLE as a special character.
1997-06-03 01:51:43 +00:00
mikel
b674a8fd0e
fix typos noted by Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>.
1997-05-13 04:15:06 +00:00
mikel
fdae96ca39
fix a typo, noted by SAITOH Masanobu in PR misc/3599.
...
while I'm here, fix some other nits.
1997-05-11 07:22:35 +00:00
christos
3917c3179d
- Makefile cleanups
1997-03-24 21:57:01 +00:00
lukem
1be2e46708
fix the the typos (and 1 other)
1996-11-11 00:22:47 +00:00
jtk
d03349ad69
sync up with domestic fixes
1996-03-24 22:03:48 +00:00
thorpej
077a490a9f
RCS id cosmetics.
1996-02-28 21:03:49 +00:00
jtk
bf9897158a
put back in a change I accidentally dropped from telnet.95.10.23
1996-02-24 20:02:02 +00:00
jtk
0058997e19
restore last of the lost local changes.
1996-02-24 18:43:37 +00:00
jtk
07f5d8ea64
replace another lost change: "help" is a valid hostname.
1996-02-24 18:33:50 +00:00
jtk
42a670f945
restore local change mistakenly overrun in import of 95.10.23
...
telnet--keep track of a client-side close and just turn off one
direction of the socket; keep running until server side closes down too.
1996-02-24 07:32:00 +00:00
jtk
583a8146a9
update to 95.10.23 version of telnet
...
also, RCS ID police
1996-02-24 01:18:25 +00:00
tls
ebe345eab2
I seem to have forgotten to commit the patch in PR1608 when I closed it. Fix VLNEXT handling.
1996-02-15 00:59:16 +00:00
tls
5a03ea3e48
contrary to unpopular opinion, 'help' is a perfectly valid hostname.
1996-01-05 04:19:30 +00:00
cgd
2f100f9270
define 'unix'
1995-04-24 07:39:57 +00:00
mycroft
451c744306
If we get an EOF on stdin, close the write side of the TCP connection, but
...
wait for the remote host to close the connection before exiting.
1995-03-17 18:03:06 +00:00
hpeyerl
e9b66f9184
Squish #581 .
1995-01-03 06:24:48 +00:00
cgd
dbacaea969
headers, and use INADDR_NONE appropriately.
1994-12-24 17:50:00 +00:00
mycroft
705891fd43
020 -> IPTOS_LOWDELAY
1994-05-08 20:42:26 +00:00
cgd
0582c91393
new telnet from ftp.cray.com. Encryption support ripped out, pending
...
figuring out what to do about it...
1994-02-25 03:00:16 +00:00
jtc
70a4f3c1c1
Fix spelling errors.
1994-01-11 18:49:16 +00:00
mycroft
f6b073c4ee
Patch from Frank van der Linden <vdlinden@fwi.uva.nl> to handle 57600 and
...
115200 baud. Baud rate checking code disabled completely when using termios.
1993-12-02 22:58:58 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
mycroft
c3e42d1c64
Add RCS indentifiers.
1993-08-01 07:22:47 +00:00
mycroft
75ff3a90bd
Add RCS identifiers.
1993-07-30 23:49:23 +00:00
cgd
6bc41d30ac
fix sending simple commands, from Jonathan Stone <jonathan@CS.Stanford.EDU>
1993-05-29 15:13:32 +00:00
mycroft
f19d90d7fe
Cleanup for GCC 2.
1993-04-19 07:28:01 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00