summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd/telnetd.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge the (in)complete ANSIfication work from src/crypto/telnet.markm2001-11-301-6/+6
|
* After running a "make unifdef", commit the resultant diffs.markm2001-11-301-214/+60
| | | | This code is now a complete sunset of the crypto (master) code.
* Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.markm2001-08-291-248/+0
|
* Feature merging and diff reduction between this code and crypto telnet.markm2001-08-201-85/+36
| | | | | Also remove conditional (AUTHENTICATION) code as we have never compiled it here, and it is doubtful that it even works in this scenario.
* MFcrypto/telnet/telnetd: Correct semantics of output_data*() and netflush()kris2001-07-231-2/+0
| | | | to ensure deterministic operation
* MFCrypto: fixed the remote buffer overflow.ru2001-07-201-32/+17
|
* Fix typo: wierd -> weird.asmodai2001-02-061-1/+1
| | | | There is no such thing as wierd in the english language.
* Add `_PATH_DEVZERO'.obrien2000-12-091-2/+3
| | | | Use _PATH_* where where possible.
* Correct definition of MAXHOSTNAMELEN in ifdef'ed code.kris2000-11-261-1/+1
| | | | | Submitted by: Edwin Groothuis <mavetju@chello.nl> PR: bin/22787
* Don't use sizeof() on a pointer when we really wanted to measurekris2000-11-191-1/+0
| | | | | | | the length of the array. Noticed by: Christos Zoulas <christos@ZOULAS.COM> Obtained from: OpenBSD
* Filter out some more magic environment variables used by libraries linkedkris2000-10-311-2/+2
| | | | | | | | 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.
* several tcp apps IPv6 updateshin2000-01-251-34/+54
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Determine the host name using an array size ofbrian1999-04-081-2/+3
| | | | | | | | | 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.
* Really fix -u....brian1999-04-071-2/+6
|
* Ensure that things returned by gethostname() andbrian1999-04-071-5/+11
| | | | | | | | | | 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
* Use realhostname() rather than various combinations ofbrian1999-04-061-39/+8
| | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
* After receiving a connection and doing a reversebrian1999-04-061-2/+18
| | | | | | | | | | 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
* Old stuff laying around: Don't use a function called getstr(), that haspeter1998-12-161-6/+6
| | | | | nasty consequences when the system curses is ncurses as this conflicts with a ncurses funciton and causes recursion.
* telnetd does not recognize the if (display file before login) gettytab flag.phk1998-04-261-1/+19
| | | | | | PR: 6365 Reviewed by: phk Submitted by: Jason Garman <init@risen.org>
* Use err(3). Remove progname and trailing \n in syslog strings.charnier1997-12-031-50/+39
|
* PR: bin/771 and bin/1037 are resolved by this changeuhclem1997-10-081-1/+17
| | | | | | | | | | | | | | | | 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.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Some buffer overrun fixes and removed check for username starting with "-"pst1997-01-071-5/+9
| | | | | | (replacied it with a getopt stopper (--) instead, which is more correct). Obtained from: OpenBSD
* add forgotten $Id$wosch1996-09-221-0/+2
|
* Add a ``-P altlogin'' option which allows the sysadmin to specify anpeter1996-08-131-1/+6
| | | | alternate login(1) type program to run.
* Fixed bug introduced with the change of startslave()...two argumentsdg1995-09-111-3/+3
| | | | | | 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.
* Delay starting login process until option negotiation is complete topst1995-09-051-22/+7
| | | | | | avoid race condition on connections with larger round-trip-times. Submitted by: John Capo & Peter Wemm
* Remove trailing whitespace.rgrimes1995-05-301-3/+3
|
* Remove the scary bits from telnetd - no more encryption left here.csgr1994-08-121-33/+1
| | | | | Only crypt.c in libc remains. Reviewed by: Geoff Rehmet
* BSD 4.4 Lite Libexec Sourcesrgrimes1994-05-271-0/+1582
OpenPOWER on IntegriCloud