summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd/sys_term.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't risk catching a signal while handling a signal for a dying child, as wejmallett2002-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
* Don't use non-signal-safe functions (exit(3) in this case) insheldonh2002-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
* Merge from master (crypto) telnet. WARNS fixes for alpha.markm2001-12-031-4/+4
|
* Merge the (in)complete ANSIfication work from src/crypto/telnet.markm2001-11-301-3/+3
|
* After running a "make unifdef", commit the resultant diffs.markm2001-11-301-656/+116
| | | | 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-501/+4
|
* Feature merging and diff reduction between this code and crypto telnet.markm2001-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.
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Fix the number of bytes allocated by realloc when more space is neededghelmer2001-06-071-1/+1
| | | | | | for the vector of arguments. MFC after: 1 week
* Synch: Properly constify sccsid[].asmodai2001-02-071-2/+2
| | | | Replace bcopy() with memmove().
* (scrub_env): change to only accept a listed set of variables,assar2000-12-101-23/+37
| | | | including only non-filename contents for TERMCAP
* Add `_PATH_DEVZERO'.obrien2000-12-091-8/+10
| | | | Use _PATH_* where where possible.
* Don't use sizeof() on a pointer when we really wanted to measurekris2000-11-191-7/+3
| | | | | | | 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-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.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Back out previous commit - it's not necessary now that tty.h properly includesjkh1999-08-091-2/+1
| | | | the queue macros.
* Add a missing include (sys/queue.h for sys/tty.h SLIST usage.)green1999-08-091-1/+2
|
* Ensure that things returned by gethostname() andbrian1999-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
* Remove a bogus prototype for time() and let time.h do that.jb1998-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.
* sprintf->snprintf paranoia. The one thing that looks like a hole inimp1997-12-241-7/+8
| | | | | the diff is in an ifdef that isn't enabled for FreeBSD. Obtained from: OpenBSD(?)
* Use err(3). Remove progname and trailing \n in syslog strings.charnier1997-12-031-13/+19
|
* 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-7/+5
| | | | | | (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-3/+9
| | | | alternate login(1) type program to run.
* Remove LD_NOSTD_PATH unsetenv, isn't exist anymoreache1995-10-241-1/+0
|
* Fix original patch error with ! before strncmpache1995-10-201-4/+10
| | | | Zap only needed LD_* variables
* Don't allow LD_* env. variables to be trickedache1995-10-201-0/+22
| | | | Submitted by: Sam Hartman <hartmans@mit.edu>
* Move erase cleanup outside linemode conditionalpst1995-09-061-1/+1
|
* Properly set the erase character for the login prompt.pst1995-09-051-1/+5
| | | | Submitted by: John Capo <jc@irbs.com> & Peter Wemm
* Fix some typos in a comment BUAD -> BAUD.ats1995-08-051-3/+3
|
* Use the same DECODE_BAUD trick like in new telnetd to obtainache1995-08-021-0/+17
| | | | | termios speed. Obtained from: Pre-Lite2 telnet
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* Fix bug:ache1995-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.
* Support for >32 PTYs.jkh1995-02-091-3/+3
| | | | Submitted by: Heikki Suonsivu <hsu@cs.hut.fi>
* Plug already known security hole. (Brought over from 1.1.5):guido1994-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
* BSD 4.4 Lite Libexec Sourcesrgrimes1994-05-271-0/+2135
OpenPOWER on IntegriCloud