summaryrefslogtreecommitdiffstats
path: root/libexec/getty
AgeCommit message (Collapse)AuthorFilesLines
2020-02-08correct Research Unix edition "appeared in" use in HISTORYjsg2-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@
2019-06-28When system calls indicate an error they return -1, not some arbitraryderaadt1-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.
2019-06-23Explicitly lock unveil. Noticed when testing the recent ps(1) commit exposingrob1-1/+5
the unveil state of running processes. ok deraadt@
2019-05-01Pull tname initialization up since it's used in an error path.florian1-2/+3
Pointed out by jsg, just fix it deraadt@
2018-11-17need to closefrom(0) before execve(), otherwise tty isn't properlyderaadt1-1/+2
'hung up'; some testing by Theodore Wynnychenko
2018-11-15Theodore Wynnychenko discovered the gettytab "lo=path" feature didn't workderaadt2-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
2018-09-25document HUP;jmc1-2/+8
based on a diff from katherine rohl, shortened by request of deraadt
2018-09-24unveil(2) in getty. This has been in snaps for more than 2 months,deraadt1-1/+14
since I worry that a mistake in here will cause significant grief.
2018-06-14silence a compiler warninggsoares1-2/+2
OK millert
2017-05-29do not need dev[] wasting bss spacederaadt1-3/+2
2017-05-28Do a better job of not printing sequences we cannot reverse in DELETE orderaadt1-7/+18
KILL. Therefore we can do a better job cleaning up. testing by benno
2017-05-27Stop echoing ANSI sequences back to the console, by expanding ESC characterderaadt1-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
2017-05-27Stop supporting primordial # (erase) and @ (kill) sequences.deraadt2-15/+5
ok tedu
2017-05-27remove the getname() code trying to handle baud < 1200 terminals.tedu1-8/+3
leave the special down under code until somebody unearths why it exists.
2017-05-27unifdef XXX_DELAY which is older than i amtedu1-73/+1
2017-01-23pledge a tiny bit later. This results in the specified tty beingderaadt1-6/+6
opened before the first pledge call. testing by tb and benno and others
2016-03-16More "(<blah> *)0" -> NULL, avoiding any stdarg functions.krw2-5/+5
Feedback millert@ kettenis@
2016-01-08Zap extraneous SYNOPSIS sections.zhuk1-4/+7
The gettytab(5) and termcap(5) get FILES, others don't need anything. With input from & okay schwarze@
2015-12-22assign pointers to NULL rather than 0mmcc1-2/+2
2015-11-16Observe that FIOASYNC clearing for stdin is only done in the case wherederaadt1-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
2015-11-06further PPP reduction, hint from sthentedu4-18/+5
2015-11-06remove ppplogin support. ok sthentedu1-39/+4
2015-10-16Hoist clearing of FIOASYNC to much earlier, then getty can usederaadt1-6/+8
pledge "stdio rpath fattr proc exec tty".
2015-08-28remove excess tab at end of line (how did they afford the extra bytes inderaadt1-2/+2
the dark ages?)
2015-07-18remove note in BUGS about the he capability;jmc1-6/+2
2015-07-16remove mention of hostname editingtedu1-29/+2
2015-07-16remove ancient support for edited hostnames. ok deraadt (long ago)tedu3-47/+6
2015-04-14Log a more useful error message if ttyname() fails. OK deraadt@millert1-2/+10
2015-01-16adjust to HOST_NAME_MAX+1 & LOGIN_NAME_MAXderaadt1-4/+4
2014-11-19Nuke yet more obvious #include duplications.krw1-2/+1
ok deraadt@
2014-11-18Nuke some obvious #include duplications.krw1-2/+1
ok espie@ deraadt@ millert@ tedu@
2014-11-15Reduce instances of `` '' in manuals.bentley1-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@
2014-05-24Remove errant double quote; from Jean-Philippe Ouelletmillert1-3/+3
2014-04-12remove the prototype for compatflags() which was removed in 2013.jsg1-3/+1
2013-12-10Drop the f0, f1, f2 gettytab capabilities that were used to pokenaddy4-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@
2013-11-27unsigned char for ctypederaadt1-4/+4
ok okan kettenis
2013-07-16where "-" represents stdin, just use Sq, not Fl, since it's not a flag;jmc1-3/+3
from Jan Stary
2013-06-04do not go into upper to lower case translation mode when a all-capsbenno1-6/+2
username has been entered. ok deraadt@
2013-04-21use poll + nanosleep instead of select with a fixed size fd_setderaadt1-13/+12
ok tedu
2011-09-03knock out some useless Pp;jmc1-2/+1
2011-09-03make -column lists pretty again;jmc1-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.
2010-06-07Fix a comment typoguenther1-2/+2
2010-02-18The .It macro is parsed, and .Do is callable, so we must escape.schwarze1-4/+4
Found by and unbreaking the build with mandoc(1). OK jmc@
2009-10-27rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt3-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
2008-10-22Mention that "secure" on the console entry means, thatmpf1-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@
2008-10-16sub-system -> subsystem, for consistency withour other pages;jmc1-3/+3
2008-02-09Remove an old workaround that was needed in SCCS times (%M% expanding to thembalmer1-6/+4
filename). ok mikeb, millert
2007-05-31convert to new .Dd format;jmc3-6/+6
2003-07-29spacesderaadt1-3/+3
2003-07-15.Ql Fl -> .Sq Fl where literal makes no sense;jmc1-2/+2