Mark Murray
aa71cb52b5
Feature merging and diff reduction between this code and crypto telnet.
...
Also remove conditional (AUTHENTICATION) code as we have never compiled
it here, and it is doubtful that it even works in this scenario.
2001-08-20 12:12:27 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00
Kris Kennaway
66e9cfc57f
MFcrypto/telnet/telnetd: Correct semantics of output_data*() and netflush()
...
to ensure deterministic operation
2001-07-23 22:00:51 +00:00
Ruslan Ermilov
989a718dbb
MFCrypto: fixed the remote buffer overflow.
2001-07-20 15:14:03 +00:00
Dima Dorfman
7ebcc426ef
Remove whitespace at EOL.
2001-07-15 07:53:42 +00:00
Ruslan Ermilov
0efe23d669
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 10:49:54 +00:00
Brian Somers
7bc6d0158f
Fix the type of the NULL arg to execl()
...
Idea from: Theo de Raadt <deraadt@openbsd.org>
2001-07-09 09:24:06 +00:00
Guy Helmer
7582054e10
Fix the number of bytes allocated by realloc when more space is needed
...
for the vector of arguments.
MFC after: 1 week
2001-06-07 20:05:18 +00:00
Ruslan Ermilov
4ecbb30346
Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.
...
Approved by: markm
2001-03-28 12:08:22 +00:00
Ruslan Ermilov
e5b5c66bca
- Backout botched attempt to intoduce MANSECT feature.
...
- MAN[1-9] -> MAN.
2001-03-26 14:22:12 +00:00
Ruslan Ermilov
020ee2dc9f
Set the default manual section for libexec/ to 8.
2001-03-20 18:10:13 +00:00
Jeroen Ruigrok van der Werven
7c63796828
Preceed/preceeding are not english words. Use precede or preceding.
2001-02-18 10:25:42 +00:00
Jeroen Ruigrok van der Werven
1debc9f69d
Synch: Properly constify sccsid[].
...
Replace bcopy() with memmove().
2001-02-07 22:25:56 +00:00
Jeroen Ruigrok van der Werven
197640b1d7
Synch: Prefer memmove() over bcopy().
2001-02-07 22:22:57 +00:00
Jeroen Ruigrok van der Werven
a4322ab2f6
Synch: Properly constify sccsid[].
2001-02-07 22:20:44 +00:00
Jeroen Ruigrok van der Werven
6f76661f7f
Synch: prefer memmove() over bcopy(), since the first is a C-standard
...
interface, whilst the latter is a BSD'ism.
2001-02-07 22:18:58 +00:00
Jeroen Ruigrok van der Werven
9a01d32bfd
Fix typo: seperate -> separate.
...
Seperate does not exist in the english language.
Submitted to look at by: kris
2001-02-06 10:39:38 +00:00
Jeroen Ruigrok van der Werven
f09deb6962
Fix typo: wierd -> weird.
...
There is no such thing as wierd in the english language.
2001-02-06 09:25:10 +00:00
Ruslan Ermilov
d0353b836e
mdoc(7) police: split punctuation characters + misc fixes.
2001-02-01 16:38:02 +00:00
Ruslan Ermilov
896eb7d10c
Prepare for mdoc(7)NG.
2001-01-16 09:15:57 +00:00
Ruslan Ermilov
58eaff2332
Prepare for mdoc(7)NG.
2000-12-20 13:26:01 +00:00
Assar Westerlund
ba688fa510
(scrub_env): change to only accept a listed set of variables,
...
including only non-filename contents for TERMCAP
2000-12-10 20:50:20 +00:00
David E. O'Brien
1a37aa566b
Add `_PATH_DEVZERO'.
...
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Kris Kennaway
f6fd83ed27
Correct definition of MAXHOSTNAMELEN in ifdef'ed code.
...
Submitted by: Edwin Groothuis <mavetju@chello.nl>
PR: bin/22787
2000-11-26 21:37:51 +00:00
Ruslan Ermilov
760819894e
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 14:42:24 +00:00
Kris Kennaway
75dd9c65fa
Don't use sizeof() on a pointer when we really wanted to measure
...
the length of the array.
Noticed by: Christos Zoulas <christos@ZOULAS.COM>
Obtained from: OpenBSD
2000-11-19 10:01:27 +00:00
Kris Kennaway
4147bd4426
Filter out some more magic environment variables used by libraries linked
...
with telnetd. This should really be done with a positive filter - i.e.
only allow through a configured list of variables.
Also do some buffer-safety cleanups while I'm here - I don't think these
are exploitable.
2000-10-31 05:29:54 +00:00
Mike Pritchard
751f44657e
Minor mdoc cleanup.
...
PR: docs/13218
2000-05-05 02:21:45 +00:00
Yoshinobu Inoue
0cac72f42c
several tcp apps IPv6 update
...
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
2000-01-25 14:52:10 +00:00
Jeroen Ruigrok van der Werven
f84ca2612e
We do not support the -B option.
...
PR: 15925
Submitted by: Thierry Herbelot
2000-01-12 14:49:38 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Jordan K. Hubbard
ef4aaceaa0
Back out previous commit - it's not necessary now that tty.h properly includes
...
the queue macros.
1999-08-09 07:51:03 +00:00
Brian Feldman
3452a15dcf
Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)
1999-08-09 02:19:38 +00:00
Brian Somers
d5cf830ef1
Determine the host name using an array size of
...
MAXHOSTNAMELEN and call trimdomain() before implementing
the -u option.
This allows local hosts of a lan with a long domain name to
appear properly in utmp by base host name (w/o domain) rather
than by IP number.
1999-04-08 21:36:27 +00:00
Brian Somers
aae211bc7e
Really fix -u....
1999-04-07 08:39:54 +00:00
Brian Somers
9e9a43bdec
Ensure that things returned by gethostname() and
...
friends are terminated and allow for a maximum
host name length of MAXHOSTNAMELEN - 1.
Put parenthesis around sizeof args.
Make some variables static.
Fix telnetd -u (broken by my last commit)
Prompted by: bde
1999-04-07 08:27:45 +00:00
Brian Somers
32af26a501
Use realhostname() rather than various combinations of
...
gethostbyaddr() & gethostbyname().
Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
1999-04-06 23:06:00 +00:00
Brian Somers
51d8a6713f
After receiving a connection and doing a reverse
...
lookup on the incoming IP, do a forward lookup on
the result and make sure that the IP is in the
resulting list. If it's not, put the IP number
in utmp/wtmp instead of the rogue name.
Stolen from: rlogind
Suggested by: sef
1999-04-06 00:29:41 +00:00
Peter Wemm
3cc1b1bf9c
Old stuff laying around: Don't use a function called getstr(), that has
...
nasty consequences when the system curses is ncurses as this conflicts
with a ncurses funciton and causes recursion.
1998-12-16 06:04:29 +00:00
Wolfram Schneider
acd8019083
Sort cross references.
1998-08-31 16:41:09 +00:00
John Birrell
ad12d72a41
Remove a bogus prototype for time() and let time.h do that.
...
Change pointer casts from int to long. The code that looks to index -1
of argv is still broken on alpha.
1998-05-14 10:07:29 +00:00
Steve Price
b1dd8a7b57
Clarify use of 'if' capability.
...
PR: 6499
Submitted by: Doug Barton <Studded@san.rr.com>
1998-05-04 02:37:29 +00:00
Steve Price
f1f61bc603
Avoid stairstep effect on output of 'if=...' file.
...
PR: part of 6492
Submitted by: Chip Norkus via Doug White <studded@san.rr.com>
1998-05-03 16:29:06 +00:00
Poul-Henning Kamp
5708bd4228
telnetd does not recognize the if (display file before login) gettytab flag.
...
PR: 6365
Reviewed by: phk
Submitted by: Jason Garman <init@risen.org>
1998-04-26 06:51:36 +00:00
Philippe Charnier
4493ca0bce
Add missing dot.
1998-01-07 07:56:15 +00:00
Warner Losh
d3a9dd61ac
sprintf->snprintf paranoia. The one thing that looks like a hole in
...
the diff is in an ifdef that isn't enabled for FreeBSD.
Obtained from: OpenBSD(?)
1997-12-24 19:21:09 +00:00
Philippe Charnier
38de36c41c
Sync with diffs I found in kerberised versions: -Wall, no `;' in macros.
1997-12-08 07:46:53 +00:00
Philippe Charnier
5f806c3ccf
Use err(3). Remove progname and trailing \n in syslog strings.
1997-12-03 07:16:08 +00:00
Frank Durda IV
f05011e686
PR: bin/771 and bin/1037 are resolved by this change
...
This change changes the default handling of linemode so that older and/or
stupider telnet clients can still get wakeup characters like <ESC> and
<CTRL>D to work correctly multiple times on the same line, as in csh
"set filec" operations. It also causes CR and LF characters to be read by
apps in certain terminal modes consistently, as opposed to returning
CR sometimes and LF sometimes, which broke existing apps. The change
was shown to fix the problem demonstrated in the FreeBSD telnet client,
along with the telnet client in Solaris, SCO, Windows '95 & NT, DEC OSF,
NCSA, and others.
A similar change will be incorporated in the crypto version of telnetd.
This resolves bin/771 and bin/1037.
1997-10-08 03:10:32 +00:00
Mark Murray
8aeaa47e80
There is a clear separation of the crypto telnet and the non-crypto telnet.
...
As this is the non-crypto version, remove the useless (commented out)
directives and macros.
1997-09-28 08:40:54 +00:00
Wolfram Schneider
d6940a479f
-p flag misdocumented in telnetd(8)
...
PR: 4462
Submitted by: hfir@math.rochester.edu
1997-09-14 18:25:19 +00:00
Warner Losh
91477cc4d7
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-28 15:48:21 +00:00
Peter Wemm
9e522f7a18
Revert $FreeBSD$ to $Id$
1997-02-22 14:22:49 +00:00
David Nugent
54472d02d2
Added support for %s (sysname) %m (machine) %r (release) and %v (version)
...
prompt macros to agree with getty(8).
1997-02-02 07:33:50 +00:00
Jordan K. Hubbard
1130b656e5
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.
1997-01-14 07:20:47 +00:00
Wolfram Schneider
af20215665
Sort cross references.
1997-01-13 00:25:51 +00:00
Paul Traina
a29e4eaa60
Some buffer overrun fixes and removed check for username starting with "-"
...
(replacied it with a getopt stopper (--) instead, which is more correct).
Obtained from: OpenBSD
1997-01-07 19:00:52 +00:00
Wolfram Schneider
8607faf466
correct spelling of 'X Window System' (tm)
1996-10-06 17:59:28 +00:00
Wolfram Schneider
e83201b43a
delete doubled words, e.g.: "the the" -> "the"
1996-10-05 22:27:30 +00:00
Wolfram Schneider
148531ef1e
add forgotten $Id$
1996-09-22 21:56:57 +00:00
Bruce Evans
5b963fa12e
Fixed DPADD.
1996-09-05 17:16:10 +00:00
Peter Wemm
326bbdd92f
Add a ``-P altlogin'' option which allows the sysadmin to specify an
...
alternate login(1) type program to run.
1996-08-13 07:51:45 +00:00
Andrey A. Chernov
03749d174f
Localize time
1996-05-07 19:10:32 +00:00
Peter Wemm
6065a0be11
This commit was generated by cvs2svn to compensate for changes in r13122,
...
which included commits to RCS files with non-trunk default branches.
1995-12-30 19:02:48 +00:00
Andrey A. Chernov
d7582593f6
Remove LD_NOSTD_PATH unsetenv, isn't exist anymore
1995-10-24 06:50:45 +00:00
Andrey A. Chernov
d549e5cc7f
Fix original patch error with ! before strncmp
...
Zap only needed LD_* variables
1995-10-20 22:17:35 +00:00
Andrey A. Chernov
68942f23dd
Don't allow LD_* env. variables to be tricked
...
Submitted by: Sam Hartman <hartmans@mit.edu>
1995-10-20 17:26:40 +00:00
David Greenman
430ff9b689
Fixed bug introduced with the change of startslave()...two arguments
...
were chopped off of the function call and garbage was passed instead.
The solution involves making some variable globals as well as fixing the
call to have all the arguments.
1995-09-11 20:54:49 +00:00
Paul Traina
b74fc1026f
Move erase cleanup outside linemode conditional
1995-09-06 02:03:36 +00:00
Paul Traina
e22b1cd1ca
Properly set the erase character for the login prompt.
...
Submitted by: John Capo <jc@irbs.com> & Peter Wemm
1995-09-05 17:38:31 +00:00
Paul Traina
575ecb340a
Delay starting login process until option negotiation is complete to
...
avoid race condition on connections with larger round-trip-times.
Submitted by: John Capo & Peter Wemm
1995-09-05 17:34:29 +00:00
Andreas Schulz
c4dfd14ae0
Fix some typos in a comment BUAD -> BAUD.
1995-08-05 18:16:50 +00:00
Paul Richards
7ce7bdd607
Change default banner fro 4.4 BSD to FreeBSD.
...
Reviewed by:
Submitted by:
Obtained from:
1995-08-02 12:07:31 +00:00
Andrey A. Chernov
955db62afa
Use the same DECODE_BAUD trick like in new telnetd to obtain
...
termios speed.
Obtained from: Pre-Lite2 telnet
1995-08-02 11:20:05 +00:00
David Greenman
ecf74fe675
The final negotiation of DO_BINARY in the LINEMODE portion of the telnetd code
...
causes some clients that do not support linemode to mis-interpret the return
key (i.e. double returns).
The fix is to only do the state check for binary options if linemode will
be used.
Closes PR#505.
Submitted by: Charles Henrich
1995-06-17 05:50:47 +00:00
Rodney W. Grimes
6c06b4e2aa
Remove trailing whitespace.
1995-05-30 05:51:47 +00:00
Andrey A. Chernov
d3e6b9f393
Fix bug:
...
When hostname len > 8, name replaced with dot notation when -u flag
not specified (default case).
Use _PATH_* for utmp/wtmp.
1995-04-26 22:33:15 +00:00
Jordan K. Hubbard
1338e00966
Support for >32 PTYs.
...
Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
1995-02-09 11:11:01 +00:00
Rodney W. Grimes
6897a8a75d
Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap
1994-09-11 21:53:28 +00:00
Geoff Rehmet
216ce1f66d
Don't define KLUDGELINEMODE.
...
(If you do, you will have problems trying to telnet into a FreeBSD-2.0
box from a Sun, and I WANT TO DO THAT.)
Submitted by: Geoff
1994-09-05 20:36:34 +00:00
Guido van Rooij
e27eb9e8ec
Plug already known security hole. (Brought over from 1.1.5):
...
Fixed security problem with telnetd, which allowed
telnet -l -hcert.org localhost
to change the user's host in utmp.
Thanks to Matthew Green <mrgreen@@mame.mu.oz.au> for showing me this one.
Reviewed by: karl, guido
Submitted by: mrgreen@@mame.mu.oz.au
1994-08-15 20:06:13 +00:00
Geoff Rehmet
46592ab983
Remove the scary bits from telnetd - no more encryption left here.
...
Only crypt.c in libc remains.
Reviewed by: Geoff Rehmet
1994-08-12 23:00:04 +00:00
Jordan K. Hubbard
5670e75738
Change bogus --I to -I to make compilation happen again.
...
Submitted by: jkh
1994-08-10 04:55:19 +00:00
Garrett Wollman
2a3c26c889
Update to new make macros and disable Kerberos because we haven't got it
...
set up right yet.
1994-08-05 21:24:58 +00:00
Rodney W. Grimes
ea022d1687
BSD 4.4 Lite Libexec Sources
1994-05-27 12:39:25 +00:00