321267 |
20-Jul-2017 |
ngie |
MFC r314653:
libexec: normalize paths using SRCTOP-relative paths or :H when possible
This simplifies make logic/output |
275508 |
05-Dec-2014 |
ngie |
MFC r274364:
Add baud rate support to telnet(1)
This implements part of RFC-2217
It's based off a patch originally written by Sujal Patel at Isilon, and contributions from other Isilon employees.
PR: 173728 Phabric: D995 Reviewed by: markj, markm Sponsored by: EMC / Isilon Storage Division |
256281 |
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
184935 |
13-Nov-2008 |
ed |
Convert telnetd(8) to use posix_openpt(2).
Some time ago I got some reports MPSAFE TTY broke telnetd(8). Even though it turned out to be a different problem within the TTY code, I spotted a small issue with telnetd(8). Instead of allocating PTY's using openpty(3) or posix_openpt(2), it used its own PTY allocation routine. This means that telnetd(8) still uses /dev/ptyXX-style devices.
I've also increased the size of line[]. Even though 16 should be enough, we already use 13 bytes ("/dev/pts/999", including '\0'). 32 bytes gives us a little more freedom.
Also enable -DSTREAMSPTY. Otherwise telnetd(8) strips the PTY's pathname to the latest slash instead of just removing "/dev/" (e.g. /dev/pts/0 -> 0, instead of pts/0).
Reviewed by: rink
|
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.
|
160866 |
31-Jul-2006 |
yar |
inetd and telnetd are not included in the standard release crunched floppies, but they can be included as options in src/release/picobsd (omitted by default though.) Therefore preserve the RELEASE_CRUNCH knob in their Makefiles, but tell its real purpose in a comment.
|
160854 |
31-Jul-2006 |
yar |
Stop enforcing dependencies between MK_* options at Makefile level. All the dependencies are satisfied now in <bsd.own.mk>.
|
160853 |
31-Jul-2006 |
yar |
telnetd(8) doesn't really go to the crunched floppies, so its Makefile needn't test for RELEASE_CRUNCH.
Suggested by: ru
|
160743 |
27-Jul-2006 |
yar |
Respect MK_INET6_SUPPORT. Apply style.Makefile(5).
|
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.
|
102411 |
25-Aug-2002 |
charnier |
Replace various spelling with FALLTHROUGH which is lint()able
|
99500 |
06-Jul-2002 |
charnier |
The .Nm utility
|
97341 |
27-May-2002 |
jmallett |
Don't risk catching a signal while handling a signal for a dying child, as we can then end up not properly clearing wtmp/utmp entries.
PR: bin/37934 Submitted by: Sandeep Kumar <skumar@juniper.net> Reviewed by: markm MFC after: 2 weeks
|
90296 |
06-Feb-2002 |
kris |
Set WFORMAT=0, overlooked in previous commits to libexec/.
Reported by: jhay
|
90242 |
05-Feb-2002 |
sheldonh |
Don't use non-signal-safe functions (exit(3) in this case) in signal handlers. In this case, use _exit(2) instead, following the call to shutdown(2).
This fixes rare telnetd hangs.
PR: misc/33672 Submitted by: Umesh Krishnaswamy <umesh@juniper.net> MFC after: 1 month
|
87883 |
14-Dec-2001 |
ru |
MFCrypto: Remove -r, -s, sort -p.
|
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.
|
87153 |
30-Nov-2001 |
markm |
After running a "make unifdef", commit the resultant diffs.
This code is now a complete sunset 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.
|
82497 |
29-Aug-2001 |
markm |
Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.
|
82326 |
25-Aug-2001 |
dd |
Remove description of an option that only applies to UNICOS < 7.0. That define may still be present in the source, but I don't think anyone has plans to try to use it.
Obtained from: NetBSD
|
81963 |
20-Aug-2001 |
markm |
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.
|
81622 |
14-Aug-2001 |
ru |
mdoc(7) police: s/BSD/.Bx/ where appropriate.
|
80225 |
23-Jul-2001 |
kris |
MFcrypto/telnet/telnetd: Correct semantics of output_data*() and netflush() to ensure deterministic operation
|
80047 |
20-Jul-2001 |
ru |
MFCrypto: fixed the remote buffer overflow.
|
79754 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79529 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79452 |
09-Jul-2001 |
brian |
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
|
77881 |
07-Jun-2001 |
ghelmer |
Fix the number of bytes allocated by realloc when more space is needed for the vector of arguments.
MFC after: 1 week
|
74928 |
28-Mar-2001 |
ru |
Bye-bye /usr/lib/libtelnet.a. This should fix ``make release'' brokeness.
Approved by: markm
|
74814 |
26-Mar-2001 |
ru |
- Backout botched attempt to intoduce MANSECT feature. - MAN[1-9] -> MAN.
|
74529 |
20-Mar-2001 |
ru |
Set the default manual section for libexec/ to 8.
|
72640 |
18-Feb-2001 |
asmodai |
Preceed/preceeding are not english words. Use precede or preceding.
|
72143 |
07-Feb-2001 |
asmodai |
Synch: Properly constify sccsid[]. Replace bcopy() with memmove().
|
72142 |
07-Feb-2001 |
asmodai |
Synch: Prefer memmove() over bcopy().
|
72141 |
07-Feb-2001 |
asmodai |
Synch: Properly constify sccsid[].
|
72140 |
07-Feb-2001 |
asmodai |
Synch: prefer memmove() over bcopy(), since the first is a C-standard interface, whilst the latter is a BSD'ism.
|
72089 |
06-Feb-2001 |
asmodai |
Fix typo: seperate -> separate.
Seperate does not exist in the english language.
Submitted to look at by: kris
|
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.
|
71099 |
16-Jan-2001 |
ru |
Prepare for mdoc(7)NG.
|
70227 |
20-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
69825 |
10-Dec-2000 |
assar |
(scrub_env): change to only accept a listed set of variables, including only non-filename contents for TERMCAP
|
69793 |
09-Dec-2000 |
obrien |
Add `_PATH_DEVZERO'. Use _PATH_* where where possible.
|
69223 |
26-Nov-2000 |
kris |
Correct definition of MAXHOSTNAMELEN in ifdef'ed code.
Submitted by: Edwin Groothuis <mavetju@chello.nl> PR: bin/22787
|
68949 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
68890 |
19-Nov-2000 |
kris |
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
|
68038 |
31-Oct-2000 |
kris |
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.
|
60015 |
05-May-2000 |
mpp |
Minor mdoc cleanup.
PR: docs/13218
|
56590 |
25-Jan-2000 |
shin |
several tcp apps IPv6 update -inetd -rshd -rlogind -telnetd -rsh -rlogin
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
|
55858 |
12-Jan-2000 |
asmodai |
We do not support the -B option.
PR: 15925 Submitted by: Thierry Herbelot
|
50476 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
49557 |
09-Aug-1999 |
jkh |
Back out previous commit - it's not necessary now that tty.h properly includes the queue macros.
|
49554 |
09-Aug-1999 |
green |
Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)
|
45492 |
08-Apr-1999 |
brian |
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.
|
45423 |
07-Apr-1999 |
brian |
Really fix -u....
|
45422 |
07-Apr-1999 |
brian |
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
|
45393 |
06-Apr-1999 |
brian |
Use realhostname() rather than various combinations of gethostbyaddr() & gethostbyname().
Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
|
45353 |
06-Apr-1999 |
brian |
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
|
41857 |
16-Dec-1998 |
peter |
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.
|
38702 |
31-Aug-1998 |
wosch |
Sort cross references.
|
36030 |
14-May-1998 |
jb |
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.
|
35665 |
04-May-1998 |
steve |
Clarify use of 'if' capability.
PR: 6499 Submitted by: Doug Barton <Studded@san.rr.com>
|
35646 |
03-May-1998 |
steve |
Avoid stairstep effect on output of 'if=...' file.
PR: part of 6492 Submitted by: Chip Norkus via Doug White <studded@san.rr.com>
|
35460 |
26-Apr-1998 |
phk |
telnetd does not recognize the if (display file before login) gettytab flag.
PR: 6365 Reviewed by: phk Submitted by: Jason Garman <init@risen.org>
|
32314 |
07-Jan-1998 |
charnier |
Add missing dot.
|
31975 |
24-Dec-1997 |
imp |
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(?)
|
31625 |
08-Dec-1997 |
charnier |
Sync with diffs I found in kerberised versions: -Wall, no `;' in macros.
|
31511 |
03-Dec-1997 |
charnier |
Use err(3). Remove progname and trailing \n in syslog strings.
|
30211 |
08-Oct-1997 |
uhclem |
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.
|
29918 |
28-Sep-1997 |
markm |
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.
|
29397 |
14-Sep-1997 |
wosch |
-p flag misdocumented in telnetd(8) PR: 4462 Submitted by: hfir@math.rochester.edu
|
24349 |
28-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
22989 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22196 |
02-Feb-1997 |
davidn |
Added support for %s (sysname) %m (machine) %r (release) and %v (version) prompt macros to agree with getty(8).
|
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.
|
21635 |
13-Jan-1997 |
wosch |
Sort cross references.
|
21403 |
07-Jan-1997 |
pst |
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
|
18767 |
06-Oct-1996 |
wosch |
correct spelling of 'X Window System' (tm)
|
18718 |
05-Oct-1996 |
wosch |
delete doubled words, e.g.: "the the" -> "the"
|
18471 |
22-Sep-1996 |
wosch |
add forgotten $Id$
|
18050 |
05-Sep-1996 |
bde |
Fixed DPADD.
|
17568 |
13-Aug-1996 |
peter |
Add a ``-P altlogin'' option which allows the sysadmin to specify an alternate login(1) type program to run.
|
15662 |
07-May-1996 |
ache |
Localize time
|
13123 |
30-Dec-1995 |
peter |
This commit was generated by cvs2svn to compensate for changes in r13122, which included commits to RCS files with non-trunk default branches.
|
11767 |
24-Oct-1995 |
ache |
Remove LD_NOSTD_PATH unsetenv, isn't exist anymore
|
11597 |
20-Oct-1995 |
ache |
Fix original patch error with ! before strncmp Zap only needed LD_* variables
|
11591 |
20-Oct-1995 |
ache |
Don't allow LD_* env. variables to be tricked Submitted by: Sam Hartman <hartmans@mit.edu>
|
10678 |
11-Sep-1995 |
dg |
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.
|
10571 |
06-Sep-1995 |
pst |
Move erase cleanup outside linemode conditional
|
10561 |
05-Sep-1995 |
pst |
Properly set the erase character for the login prompt.
Submitted by: John Capo <jc@irbs.com> & Peter Wemm
|
10560 |
05-Sep-1995 |
pst |
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
|
9931 |
05-Aug-1995 |
ats |
Fix some typos in a comment BUAD -> BAUD.
|
9860 |
02-Aug-1995 |
paul |
Change default banner fro 4.4 BSD to FreeBSD. Reviewed by: Submitted by: Obtained from:
|
9857 |
02-Aug-1995 |
ache |
Use the same DECODE_BAUD trick like in new telnetd to obtain termios speed. Obtained from: Pre-Lite2 telnet
|
9253 |
17-Jun-1995 |
dg |
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
|
8870 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
8093 |
26-Apr-1995 |
ache |
Fix bug: When hostname len > 8, name replaced with dot notation when -u flag not specified (default case). Use _PATH_* for utmp/wtmp.
|
6264 |
09-Feb-1995 |
jkh |
Support for >32 PTYs. Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
|
2678 |
11-Sep-1994 |
rgrimes |
Change all references to LIBTERM and -ltermlib to LIBTERMCAP and -ltermcap
|
2517 |
05-Sep-1994 |
csgr |
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
|
2077 |
15-Aug-1994 |
guido |
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
|
2054 |
12-Aug-1994 |
csgr |
Remove the scary bits from telnetd - no more encryption left here. Only crypt.c in libc remains. Reviewed by: Geoff Rehmet
|
2002 |
10-Aug-1994 |
jkh |
Change bogus --I to -I to make compilation happen again. Submitted by: jkh
|
1875 |
05-Aug-1994 |
wollman |
Update to new make macros and disable Kerberos because we haven't got it set up right yet.
|
1593 |
27-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1592, which included commits to RCS files with non-trunk default branches.
|