christos
7d85ef5c1f
need <sys/stat.h> for chmod
2017-01-10 21:08:15 +00:00
christos
43c3c3f74a
Add volatile for gcc 5
2016-03-17 00:21:04 +00:00
joerg
fabae2a4ad
Use __dead.
2013-08-12 13:54:33 +00:00
martin
00b8abd4f7
Fix another automatic variable that is life both pre- and post the siglongjmp
...
(which gcc calls "might be clobbered") by marking it volatile: on some
machines, this value might end up in a register loaded before the sigsetjmp,
but not preserved by the siglongjmp later.
Fixes the VAX build.
2013-08-11 09:16:42 +00:00
dholland
27c14eada7
Use siglongjmp to jump out of signal handlers.
2013-08-11 05:48:56 +00:00
dholland
bd3f97bffb
Pass WARNS=5.
2013-08-11 05:42:41 +00:00
christos
92227bd148
remove useless include (sys/stat.h) and add useful one (stdio.h)
2012-11-04 21:14:59 +00:00
roy
d56846af22
Don't attempt to parse a termcap/terminfo string ourselves;
...
always use tputs(3).
2012-06-28 08:55:10 +00:00
roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
mbalmer
bf31e2ab08
Remove an old workaround from SCCS times (%M% would insert the filename).
2009-07-04 13:24:09 +00:00
lukem
0c4ddb1599
Remove the \n and tabs from the __COPYRIGHT() strings.
2008-07-20 01:09:06 +00:00
dholland
6fc636d882
'_' is functionally alphanumeric in many contexts, including login names.
...
Since it doesn't have case, treat it like a digit. While here, avoid
setting the associated flag variable by incrementing it.
Fixes PR bin/33521; patch based on one from Dieter Roelants.
2008-04-13 02:38:01 +00:00
dholland
6c41aa55b8
Sort includes, removing duplicate <time.h>.
2008-03-04 02:34:27 +00:00
isaki
5b22b72692
white space fix.
2007-12-03 09:54:24 +00:00
hubertf
d405d8ca2b
Remove duplicated #includes and some trailing whitespace while here.
...
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 21:44:50 +00:00
christos
2343154519
pass lint
2006-11-16 04:31:24 +00:00
christos
7f94fc6d62
PR/25605: Frank Kardel: getty leaves ttymodes at read login state when
...
exec-ing pppd. Fixed as suggested.
2005-12-28 09:43:05 +00:00
elad
83057dc7cc
Don't chown/unlink uninitialized lockfile if not uugetty.
...
From Dr. Wolfgang Stukenbrock, PR/31040.
2005-09-10 21:29:36 +00:00
lukem
a8ce874400
Ensure rval is initialized before we try to check it; it won't be set
...
if AL or NN are in use.
Detected with gcc -Wuninitialized.
2005-06-01 15:50:00 +00:00
christos
00e4cd7dc0
print ptyfs ptys properly.
2005-03-17 01:25:40 +00:00
dsl
55d39107c6
Add (unsigned char) cast to ctype functions
2004-11-05 21:45:36 +00:00
agc
8e6ab8837d
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22284, verified by myself.
2003-08-07 09:46:37 +00:00
thorpej
2c1e482672
Add a "nn" (no name) capability to getty. If set in gettytab, getty
...
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
2003-05-20 19:20:03 +00:00
itojun
c5f76786a4
use strlcpy
2003-05-17 21:18:46 +00:00
christos
6b9ab756bd
PR/14941: David Querbach: add support for non-standard MS-Windows PPP client.
2001-12-14 15:06:13 +00:00
thorpej
5648feb374
ANSI'ify.
2001-11-10 17:35:54 +00:00
thorpej
db122da6a9
Const'ify partab[].
2001-11-10 17:20:52 +00:00
christos
1703d1eee6
Update to the new t_agetstr() API.
2001-11-02 18:27:00 +00:00
cgd
65a1026492
convert to use getprogname()
2001-02-19 22:43:42 +00:00
christos
c6a0145e30
remove redundant decls
...
fix nested extern
2001-02-04 22:09:01 +00:00
lukem
23e3351629
- don't use LOG_ODELAY; it's the default
...
- use LOG_WARNING (instead of LOG_ERR) for non-fatal errors
2001-01-10 00:36:44 +00:00
sommerfeld
ac8e2453b8
Add new :cs: modifier to gettytab which clears the screen using the
...
appropriate control sequence from termcap (based on the terminal type
listed in /etc/ttys for the line).
2000-12-28 22:18:27 +00:00
bjh21
d657c604d0
Clean-up of grotty SCCS workaround. It's now almost not grotty at all.
...
This is the last part of PR bin/10049.
2000-10-08 16:08:56 +00:00
bjh21
c10e667637
Don't run over the end of the banner buffer if it ends with '%'.
...
From PR bin/10049
2000-10-08 16:04:02 +00:00
mjl
4fdc259981
Use strlcpy/strlcat instead of strn* plus manual termination.
...
Use sizeof() instead of hardcoded length. Clean up NULL vs 0
confusion. sizeof(char) is 1, really.
2000-09-19 16:17:48 +00:00
ad
6aa5f51487
- Either QVT/Term or the NT 'clipboard' converts tabs to spaces. I pasted in
...
some code via QVT/Term. Sigh. Fix it.
- Teeny KNF nit.
2000-01-14 02:10:08 +00:00
ad
2a1297db0c
Add two new capabilities to gettytab - idea from FreeBSD:
...
al - user to auto-login as
if - banner file to display, like /etc/issue
2000-01-04 13:43:36 +00:00
drochner
d46a0af8c3
add one byte to the username character array and make sure the string
...
passed to "login" is '\0'-terminated
1999-12-15 17:41:48 +00:00
kml
ca59ae7c5c
Ensure that all of the initial message (im=) gets flushed to the
...
screen; previously, the last buffer worth of text would fail
to be printed.
1999-01-15 23:44:32 +00:00
tsarna
13b21dc12c
Add PPP autodetect, based on code from FreeBSD via OpenBSD.
1998-10-12 18:03:48 +00:00
mrg
2beab49a06
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
mrg
d5088f6ab0
remove register.
1998-03-30 01:52:02 +00:00
thorpej
8cbf1ce96f
Const'ify some things, rename local puts() to xputs(), since it has
...
a different prototype than the one in <stdio.h>
1997-11-18 21:29:11 +00:00
cjs
fd97c4a995
Add uugetty capability.
1997-10-19 23:46:07 +00:00
mikel
64521eb343
use <sys/cdefs.h> __COPYRIGHT() and __RCSID() macros
...
prototype internal functions and eliminate old function declarations
misc cleanup (gcc -Wall) and KNF
1997-08-06 07:22:24 +00:00
mikel
a6da6f6585
don't include <signal.h> twice
1997-08-06 05:40:28 +00:00
tls
80eef670d5
fix a couple of unlikely buffer overflows.
1997-04-29 21:01:54 +00:00
gwr
d2ae1a2c2f
After the chown(ttyn, 0, 0), call ttyaction(ttyn, "getty", "root")
1996-11-14 19:25:50 +00:00
thorpej
3ff0b1a74c
RCS id police.
1996-07-31 20:33:02 +00:00
jtc
01120f4477
Updated to use <util.h>.
...
From Greg Hudson <ghudson@MIT.EDU>.
1996-05-15 23:46:50 +00:00