aboutsummaryrefslogtreecommitdiff
path: root/libexec/getty
Commit message (Collapse)AuthorAgeFilesLines
* Prototype defttymode() instead of just declaring it.Yaroslav Tykhiy2003-07-181-1/+1
| | | | Notes: svn path=/head/; revision=117738
* - Use the initial terminal mode instead of the current modeYaroslav Tykhiy2003-06-182-73/+64
| | | | | | | | | | | | | as the source of defaults for terminal device parameters. - Do duplucate code reduction and simplification enabled by the above. Reviewed by: green MFC after: 1 month Notes: svn path=/head/; revision=116533
* Improve the manpage language a bit.Yaroslav Tykhiy2003-06-171-1/+1
| | | | | | | | | | | A PPP login program is started _automatically_ (i.e., without human intervention) even with the "pl" capability unset, as soon as a PPP frame is detected. But with "pl" set, a PPP login program is started independently of the result of PPP detection (which is rendered unnecessary then,) i.e. _unconditionally_. Notes: svn path=/head/; revision=116482
* In the last clean-up of this code, the fact that the default tty modeBrian Feldman2003-06-141-6/+20
| | | | | | | | | | | information could only be gleaned from the the tty descriptor itself was neglected, so never did the tty's default settings get copied from the kernel. Specifically, this caused all manner of ctrl-keys to not work. Fix this by calling dogettytab() in all the proper places, and retrieving the terminfo temporarily in dogettytab(). Notes: svn path=/head/; revision=116329
* Read gettytab(5) soon enough to fill in all necessary values.Yaroslav Tykhiy2003-06-102-16/+40
| | | | | | | | | | | | Re-read gettytab(5) only if needed. This fixes bugs introduced as long ago as in getty/main.c rev.1.15. PR: bin/18181 MFC after: 1 month Notes: svn path=/head/; revision=116164
* Spot one more place where boolean variables were incrementedYaroslav Tykhiy2003-06-101-1/+1
| | | | | | | instead of just being assigned a truth value. Notes: svn path=/head/; revision=116155
* Coding style fix: Use "foo = 1" instead of "foo++" to assignYaroslav Tykhiy2003-06-101-2/+2
| | | | | | | | the truth value to a boolean variable, especially when inside a loop. The variable can overflow otherwise, at least in theory. Notes: svn path=/head/; revision=116154
* Break sentences.Yaroslav Tykhiy2003-06-101-4/+6
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=116153
* General mdoc(7) markup fixes:Yaroslav Tykhiy2003-06-101-61/+67
| | | | | | | | | | | | | | - Use .Va, not .Em, to mark up variable-like identifiers (capability and database entry names.) - Stop abusing .Tn (trademark) to emphasize general phrases. - Spot unmarked capability references. - Add a missing line break. Discussed with: ru MFC after: 1 week Notes: svn path=/head/; revision=116152
* Improve the language and markup of the description of the pp and plYaroslav Tykhiy2003-06-101-7/+18
| | | | | | | | | | | | | | | capabilities: - Mark up capability identifiers. - Don't squeeze much text into the capability table given the options will be described below in detail. - Keep the capability table sorted. - Use a consistent term for a PPP login program. MFC after: 1 week Notes: svn path=/head/; revision=116151
* The .Xr utilityPhilippe Charnier2003-06-081-2/+3
| | | | Notes: svn path=/head/; revision=116033
* Fix some minor bugs, namely:Yaroslav Tykhiy2003-06-061-3/+14
| | | | | | | | | | | | | | | | | | | | | | | - Initialize "rval", which would be used uninitialized if al or pl options were set. - Don't pass an empty string to login(1) as a user name (this could be triggered by entering a name and then killing it with backspace or ^U.) - Don't loop endlessly if the al option specifies a bogus (i.e., not alphanumeric) auto-login name. - Don't pass a bogus user name to login(1) if a good name were entered and then killed with ^U. - Exit with status 0, not 1, on receiving an EOF character, since it's not a error condition. MFC after: 1 week Notes: svn path=/head/; revision=115900
* mdoc(7) police: expand contraction.Ruslan Ermilov2003-02-231-1/+1
| | | | Notes: svn path=/head/; revision=111283
* Fix a typo (missed &&).Maxim Sobolev2003-01-201-1/+1
| | | | | | | Submitted by: marcus Notes: svn path=/head/; revision=109555
* Add a new gettytab(5) option - `pl', which if set tells getty that the lineMaxim Sobolev2003-01-194-4/+7
| | | | | | | | | | | | | in question is PPP-only line, i.e. no PPP-sequence detection is necessary and PPP login program referenced by `pp' should be started automatically instead of login(1) Feature suggested and sponsored by: United Networks of Ukraine No reply from: re MFC after: 2 weeks Notes: svn path=/head/; revision=109540
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-301-1/+1
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* Fixed the abuses of .Ql visible on stderr in troff mode.Ruslan Ermilov2002-12-231-1/+1
| | | | | | | PR: docs/37176 Notes: svn path=/head/; revision=108221
* mdoc(7) police: Removed redundant .Ns calls.Ruslan Ermilov2002-08-131-1/+1
| | | | Notes: svn path=/head/; revision=101828
* The .Nm utilityPhilippe Charnier2002-07-061-5/+3
| | | | Notes: svn path=/head/; revision=99500
* #include <sys/time.h> instead of depending on namespace pollution inBruce Evans2002-02-251-3/+3
| | | | | | | | | <sys/stat.h> for its prerequisite <sys/time.h>. Removed a duplicated include. Sorted includes. Notes: svn path=/head/; revision=91216
* Removed unused include of <sys/resource.h> instead of depending onBruce Evans2002-02-251-12/+2
| | | | | | | | | | namespace pollution only 1 layer deep in <sys/stat.h> for its prerequisite <sys/time.h> Removed other unused includes. Notes: svn path=/head/; revision=91214
* Remove some unused variables, mark unused parameters as unused and changeWarner Losh2002-02-061-13/+12
| | | | | | | | names of variables that shadow globally declared variables. This should help people doing later WARNS= fixes. Notes: svn path=/head/; revision=90302
* o __P removalWarner Losh2002-02-064-136/+99
| | | | | | | | o remove register o use strict prototypes Notes: svn path=/head/; revision=90301
* Lock down with WFORMAT?=1, with overrides in the subdirectories whichKris Kennaway2002-02-041-2/+1
| | | | | | | are not yet warning-clean. Tested on i386 and alpha. Notes: svn path=/head/; revision=90164
* mdoc(7) police:Ruslan Ermilov2001-08-071-1/+1
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-152-2/+2
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-102-2/+2
| | | | Notes: svn path=/head/; revision=79529
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.Dima Dorfman2001-07-091-1/+0
| | | | Notes: svn path=/head/; revision=79454
* Add 'df' string to gettytab - the strftime(3) format for %dYaroslav Tykhiy2001-06-074-5/+9
| | | | | | | | | in the banner messages (of course, defaults to "%+"). Submitted by: Gleb Smirnoff <glebius@tak.estra.ru> Notes: svn path=/head/; revision=77874
* Replace a strcat() with a strlcat(). Partial sync with OpenBSD; moreKris Kennaway2001-04-241-1/+1
| | | | | | | | | | work is needed. Submitted by: "Andrew R. Reiter" <arr@watson.org> Obtained from: OpenBSD Notes: svn path=/head/; revision=75905
* - Backout botched attempt to intoduce MANSECT feature.Ruslan Ermilov2001-03-261-2/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74814
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2001-01-162-2/+2
| | | | Notes: svn path=/head/; revision=71099
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-201-4/+4
| | | | Notes: svn path=/head/; revision=70227
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-202-2/+2
| | | | Notes: svn path=/head/; revision=68949
* Check return code from login_tty. Allow getty to try and becomeJohn W. De Boskey2000-11-191-1/+12
| | | | | | | | | | a daemon and session leader (thus allowing getty to be run from a shell command line or script). Partially Reviewed by: bde Notes: svn path=/head/; revision=68888
* remove trailing periods from SEE ALSO.Ben Smithurst2000-11-151-1/+1
| | | | Notes: svn path=/head/; revision=68756
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-2/+0
| | | | Notes: svn path=/head/; revision=68575
* Don't depend on <sys/stat.h> bogusly including <sys/time.h> (and therebyGarrett Wollman2000-10-101-0/+1
| | | | | | | <time.h>). Notes: svn path=/head/; revision=66907
* Add 'nc' flag to gettytab -- no carrier. Forces non-blocking open andNick Sayer2000-07-314-3/+7
| | | | | | | | | | setting of CLOCAL. Necessary for 3 wire RS-232 setups with dumb terminals. PR: 5959 Notes: svn path=/head/; revision=64076
* Changed setflags() to set_flags(). This fixes world breakage due toBruce Evans2000-01-283-5/+5
| | | | | | | recently incremented namespace pollution in <unistd.h>. Notes: svn path=/head/; revision=56725
* Correct the ttys.5 and init.8 manpages with respect to the incorrectSheldon Hearn1999-12-061-1/+11
| | | | | | | | | | | | assumption that only getty processes can be managed. Describe the SysV-like ability to keep arbitrary long-running processes alive using a non-device first field in /etc/ttys. PR: 12767 Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> Notes: svn path=/head/; revision=54199
* Correct spelling : ascii -> ASCIIAlexey Zelkin1999-09-201-1/+1
| | | | | | | | | PR: docs/13702 Submitted by: Stephen J. Roznowski <sjr@home.com> Reviewed by: mpp Notes: svn path=/head/; revision=51457
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2811-11/+11
| | | | Notes: svn path=/head/; revision=50476
* Ensure that things returned by gethostname() andBrian Somers1999-04-071-2/+3
| | | | | | | | | | | | | 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
* Add an 'al' (autologin username) capability to getty/gettytab. This is aPeter Wemm1999-04-044-7/+27
| | | | | | | | | | | | | damn useful thing for using with serial consoles in clusters etc or secure console locations. Using a custom gettytab entry for console with an entry like 'al=root' means that there is *always* a root login ready on the console. This should replace hacks like those which go with conserver etc. (This is a loaded gun, watch out for those feet!) Submitted by: "Andrew J. Korty" <ajk@purdue.edu> Notes: svn path=/head/; revision=45291
* Set the CPU resource limit back to infinity before exec()ing PP.Brian Somers1999-03-091-1/+4
| | | | | | | PR: 10399 Notes: svn path=/head/; revision=44615
* This thing has its own puts function, so use it.Jordan K. Hubbard1998-10-081-1/+3
| | | | | | | Submitted by: Matthew Jacob <mjacob@nas.nasa.gov> Notes: svn path=/head/; revision=40083
* Getty is missing the speed table entry for 230400 baud.Poul-Henning Kamp1998-07-221-2/+3
| | | | | | | | | PR: 7280 Reviewed by: phk Submitted by: Craig Leres <leres@ee.lbl.gov> Notes: svn path=/head/; revision=37817