summaryrefslogtreecommitdiffstats
path: root/libexec/getty (follow)
Commit message (Collapse)AuthorAgeFilesLines
* correct Research Unix edition "appeared in" use in HISTORYjsg2020-02-082-6/+6
| | | | | | | | | | | | | | | | | Starting from "Combined Table of Contents" in Doug McIlroy's "A Research UNIX Reader" a table of which edition manuals appeared in. Checked against manuals from bitsavers/TUHS and source from TUHS where available. Ingo points out there are cases where something is included but not documented until a later release. bcd(6) v6 v7 printf(3) v2 v4 abort(3) v5 v6 system(3) v6 v7 fmod(3) v5 v6 ok schwarze@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-5/+5
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Explicitly lock unveil. Noticed when testing the recent ps(1) commit exposingrob2019-06-231-1/+5
| | | | | the unveil state of running processes. ok deraadt@
* Pull tname initialization up since it's used in an error path.florian2019-05-011-2/+3
| | | | Pointed out by jsg, just fix it deraadt@
* need to closefrom(0) before execve(), otherwise tty isn't properlyderaadt2018-11-171-1/+2
| | | | 'hung up'; some testing by Theodore Wynnychenko
* Theodore Wynnychenko discovered the gettytab "lo=path" feature didn't workderaadt2018-11-152-10/+26
| | | | | | | anymore with unveil wired to /usr/bin/login. So let's parse gettytab a bit earlier to learn which login path to unveil. Later in the loop gettytab is re-parsed, if the login changes re-exec getty to reach the unveil from the top. ok millert, also discussed with mestre
* document HUP;jmc2018-09-251-2/+8
| | | | based on a diff from katherine rohl, shortened by request of deraadt
* unveil(2) in getty. This has been in snaps for more than 2 months,deraadt2018-09-241-1/+14
| | | | since I worry that a mistake in here will cause significant grief.
* silence a compiler warninggsoares2018-06-141-2/+2
| | | | OK millert
* do not need dev[] wasting bss spacederaadt2017-05-291-3/+2
|
* Do a better job of not printing sequences we cannot reverse in DELETE orderaadt2017-05-281-7/+18
| | | | | KILL. Therefore we can do a better job cleaning up. testing by benno
* Stop echoing ANSI sequences back to the console, by expanding ESC characterderaadt2017-05-271-2/+6
| | | | | | | to literal ^[. This makes getty interaction appear more like login, and stops a mid-ANSI sequence parsing problem that messed up login, making it freeze the session until timeout. ok tedu fcambus
* Stop supporting primordial # (erase) and @ (kill) sequences.deraadt2017-05-272-15/+5
| | | | ok tedu
* remove the getname() code trying to handle baud < 1200 terminals.tedu2017-05-271-8/+3
| | | | leave the special down under code until somebody unearths why it exists.
* unifdef XXX_DELAY which is older than i amtedu2017-05-271-73/+1
|
* pledge a tiny bit later. This results in the specified tty beingderaadt2017-01-231-6/+6
| | | | | opened before the first pledge call. testing by tb and benno and others
* More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2016-03-162-5/+5
| | | | Feedback millert@ kettenis@
* Zap extraneous SYNOPSIS sections.zhuk2016-01-081-4/+7
| | | | | | The gettytab(5) and termcap(5) get FILES, others don't need anything. With input from & okay schwarze@
* assign pointers to NULL rather than 0mmcc2015-12-221-2/+2
|
* Observe that FIOASYNC clearing for stdin is only done in the case wherederaadt2015-11-161-3/+9
| | | | | | | getty receives the fd from init, so hoist it upwards. Since revoke(2) is now allowed by pledge "rpath tty", the pledges can be hoisted much higher. ok millert semarie tedu guenther
* further PPP reduction, hint from sthentedu2015-11-064-18/+5
|
* remove ppplogin support. ok sthentedu2015-11-061-39/+4
|
* Hoist clearing of FIOASYNC to much earlier, then getty can usederaadt2015-10-161-6/+8
| | | | pledge "stdio rpath fattr proc exec tty".
* remove excess tab at end of line (how did they afford the extra bytes inderaadt2015-08-281-2/+2
| | | | the dark ages?)
* remove note in BUGS about the he capability;jmc2015-07-181-6/+2
|
* remove mention of hostname editingtedu2015-07-161-29/+2
|
* remove ancient support for edited hostnames. ok deraadt (long ago)tedu2015-07-163-47/+6
|
* Log a more useful error message if ttyname() fails. OK deraadt@millert2015-04-141-2/+10
|
* adjust to HOST_NAME_MAX+1 & LOGIN_NAME_MAXderaadt2015-01-161-4/+4
|
* Nuke yet more obvious #include duplications.krw2014-11-191-2/+1
| | | | ok deraadt@
* Nuke some obvious #include duplications.krw2014-11-181-2/+1
| | | | ok espie@ deraadt@ millert@ tedu@
* Reduce instances of `` '' in manuals.bentley2014-11-151-3/+4
| | | | | | | | | | | | troff displays these as typographic quotes, but nroff implementations almost always print them literally, which rarely has the intended effect with modern fonts, even in stock xterm. These uses of `` '' can be replaced either with more semantic alternatives or with Dq, which prints typographic quotes in a UTF-8 locale (but will automatically fall back to `` '' in an ASCII locale). improvements and ok schwarze@
* Remove errant double quote; from Jean-Philippe Ouelletmillert2014-05-241-3/+3
|
* remove the prototype for compatflags() which was removed in 2013.jsg2014-04-121-3/+1
|
* Drop the f0, f1, f2 gettytab capabilities that were used to pokenaddy2013-12-104-213/+33
| | | | | | magic numbers into sgttyb. The "modern" replacement for f# is the set of i#, o#, c#, l# to poke magic numbers into termios. ok miod@
* unsigned char for ctypederaadt2013-11-271-4/+4
| | | | ok okan kettenis
* where "-" represents stdin, just use Sq, not Fl, since it's not a flag;jmc2013-07-161-3/+3
| | | | from Jan Stary
* do not go into upper to lower case translation mode when a all-capsbenno2013-06-041-6/+2
| | | | | username has been entered. ok deraadt@
* use poll + nanosleep instead of select with a fixed size fd_setderaadt2013-04-211-13/+12
| | | | ok tedu
* knock out some useless Pp;jmc2011-09-031-2/+1
|
* make -column lists pretty again;jmc2011-09-031-98/+77
| | | | | | | | | | specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
* Fix a comment typoguenther2010-06-071-2/+2
|
* The .It macro is parsed, and .Do is callable, so we must escape.schwarze2010-02-181-4/+4
| | | | | Found by and unbreaking the build with mandoc(1). OK jmc@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-273-24/+3
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* Mention that "secure" on the console entry means, thatmpf2008-10-221-3/+8
| | | | | | | no password will be needed for single-user. It's already noted in init(8), but having it here to cannot hurt. s/login/log in/ + corrections from jmc. OK jmc@
* sub-system -> subsystem, for consistency withour other pages;jmc2008-10-161-3/+3
|
* Remove an old workaround that was needed in SCCS times (%M% expanding to thembalmer2008-02-091-6/+4
| | | | | | filename). ok mikeb, millert
* convert to new .Dd format;jmc2007-05-313-6/+6
|
* spacesderaadt2003-07-291-3/+3
|
* .Ql Fl -> .Sq Fl where literal makes no sense;jmc2003-07-151-2/+2
|