aboutsummaryrefslogtreecommitdiff
path: root/libexec/telnetd/sys_term.c
Commit message (Collapse)AuthorAgeFilesLines
* Very big makeover in the way telnet, telnetd and libtelnet are built.Mark Murray2003-07-161-1192/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=117675
* Mrege from crypto telnet with "make unifdef". This gets a bunch ofMark Murray2003-05-111-4/+4
| | | | | | | $FreeBSD$ tags and some debug variable safety belts. Notes: svn path=/head/; revision=114912
* Don't risk catching a signal while handling a signal for a dying child, as weJuli Mallett2002-05-271-0/+8
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=97341
* Don't use non-signal-safe functions (exit(3) in this case) inSheldon Hearn2002-02-051-1/+1
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=90242
* Merge from master (crypto) telnet. WARNS fixes for alpha.Mark Murray2001-12-031-4/+4
| | | | Notes: svn path=/head/; revision=87268
* Merge the (in)complete ANSIfication work from src/crypto/telnet.Mark Murray2001-11-301-3/+3
| | | | Notes: svn path=/head/; revision=87156
* After running a "make unifdef", commit the resultant diffs.Mark Murray2001-11-301-656/+116
| | | | | | | This code is now a complete sunset of the crypto (master) code. Notes: svn path=/head/; revision=87153
* Manually unifdef(1) CRAY, UNICOS, hpux and sun uselsess code.Mark Murray2001-08-291-501/+4
| | | | Notes: svn path=/head/; revision=82497
* Feature merging and diff reduction between this code and crypto telnet.Mark Murray2001-08-201-173/+169
| | | | | | | | Also remove conditional (AUTHENTICATION) code as we have never compiled it here, and it is doubtful that it even works in this scenario. Notes: svn path=/head/; revision=81963
* Fix the type of the NULL arg to execl()Brian Somers2001-07-091-1/+1
| | | | | | | Idea from: Theo de Raadt <deraadt@openbsd.org> Notes: svn path=/head/; revision=79452
* Fix the number of bytes allocated by realloc when more space is neededGuy Helmer2001-06-071-1/+1
| | | | | | | | | for the vector of arguments. MFC after: 1 week Notes: svn path=/head/; revision=77881
* Synch: Properly constify sccsid[].Jeroen Ruigrok van der Werven2001-02-071-2/+2
| | | | | | | Replace bcopy() with memmove(). Notes: svn path=/head/; revision=72143
* (scrub_env): change to only accept a listed set of variables,Assar Westerlund2000-12-101-23/+37
| | | | | | | including only non-filename contents for TERMCAP Notes: svn path=/head/; revision=69825
* Add `_PATH_DEVZERO'.David E. O'Brien2000-12-091-8/+10
| | | | | | | Use _PATH_* where where possible. Notes: svn path=/head/; revision=69793
* Don't use sizeof() on a pointer when we really wanted to measureKris Kennaway2000-11-191-7/+3
| | | | | | | | | | the length of the array. Noticed by: Christos Zoulas <christos@ZOULAS.COM> Obtained from: OpenBSD Notes: svn path=/head/; revision=68890
* Filter out some more magic environment variables used by libraries linkedKris Kennaway2000-10-311-0/+7
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=68038
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Back out previous commit - it's not necessary now that tty.h properly includesJordan K. Hubbard1999-08-091-2/+1
| | | | | | | the queue macros. Notes: svn path=/head/; revision=49557
* Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)Brian Feldman1999-08-091-1/+2
| | | | Notes: svn path=/head/; revision=49554
* Ensure that things returned by gethostname() andBrian Somers1999-04-071-2/+1
| | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=45422
* Remove a bogus prototype for time() and let time.h do that.John Birrell1998-05-141-6/+5
| | | | | | | | Change pointer casts from int to long. The code that looks to index -1 of argv is still broken on alpha. Notes: svn path=/head/; revision=36030
* sprintf->snprintf paranoia. The one thing that looks like a hole inWarner Losh1997-12-241-7/+8
| | | | | | | | the diff is in an ifdef that isn't enabled for FreeBSD. Obtained from: OpenBSD(?) Notes: svn path=/head/; revision=31975
* Use err(3). Remove progname and trailing \n in syslog strings.Philippe Charnier1997-12-031-13/+19
| | | | Notes: svn path=/head/; revision=31511
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22989
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Some buffer overrun fixes and removed check for username starting with "-"Paul Traina1997-01-071-7/+5
| | | | | | | | | (replacied it with a getopt stopper (--) instead, which is more correct). Obtained from: OpenBSD Notes: svn path=/head/; revision=21403
* add forgotten $Id$Wolfram Schneider1996-09-221-0/+2
| | | | Notes: svn path=/head/; revision=18471
* Add a ``-P altlogin'' option which allows the sysadmin to specify anPeter Wemm1996-08-131-3/+9
| | | | | | | alternate login(1) type program to run. Notes: svn path=/head/; revision=17568
* Remove LD_NOSTD_PATH unsetenv, isn't exist anymoreAndrey A. Chernov1995-10-241-1/+0
| | | | Notes: svn path=/head/; revision=11767
* Fix original patch error with ! before strncmpAndrey A. Chernov1995-10-201-4/+10
| | | | | | | Zap only needed LD_* variables Notes: svn path=/head/; revision=11597
* Don't allow LD_* env. variables to be trickedAndrey A. Chernov1995-10-201-0/+22
| | | | | | | Submitted by: Sam Hartman <hartmans@mit.edu> Notes: svn path=/head/; revision=11591
* Move erase cleanup outside linemode conditionalPaul Traina1995-09-061-1/+1
| | | | Notes: svn path=/head/; revision=10571
* Properly set the erase character for the login prompt.Paul Traina1995-09-051-1/+5
| | | | | | | Submitted by: John Capo <jc@irbs.com> & Peter Wemm Notes: svn path=/head/; revision=10561
* Fix some typos in a comment BUAD -> BAUD.Andreas Schulz1995-08-051-3/+3
| | | | Notes: svn path=/head/; revision=9931
* Use the same DECODE_BAUD trick like in new telnetd to obtainAndrey A. Chernov1995-08-021-0/+17
| | | | | | | | termios speed. Obtained from: Pre-Lite2 telnet Notes: svn path=/head/; revision=9857
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-4/+4
| | | | Notes: svn path=/head/; revision=8870
* Fix bug:Andrey A. Chernov1995-04-261-2/+9
| | | | | | | | | When hostname len > 8, name replaced with dot notation when -u flag not specified (default case). Use _PATH_* for utmp/wtmp. Notes: svn path=/head/; revision=8093
* Support for >32 PTYs.Jordan K. Hubbard1995-02-091-3/+3
| | | | | | | Submitted by: Heikki Suonsivu <hsu@cs.hut.fi> Notes: svn path=/head/; revision=6264
* Plug already known security hole. (Brought over from 1.1.5):Guido van Rooij1994-08-151-2/+7
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=2077
* BSD 4.4 Lite Libexec SourcesRodney W. Grimes1994-05-271-0/+2135
Notes: svn path=/vendor/CSRG/dist/; revision=1592