Commit Graph

43 Commits

Author SHA1 Message Date
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
mycroft c16462643c Make sure that the user name cannot ever be interpreted as an option to
login(8).  Note: This does *not* fix any security holes.
1996-02-08 06:19:14 +00:00
cgd 6c5f148828 log open failure every 10th try (that was the old behaviour) UNLESS
the error is ENXIO and it's already been logged.  (this allows people
to leave getty's running on nonexistent devices without filling their
syslog.  while it's arguable that that might not be a good idea, i've
found it to be _very_ useful, because it allows me to rdist /etc/ttys.)
1995-08-13 04:08:27 +00:00
jtc 1847eaed9f sys/termios.h -> termios.h 1995-06-19 22:47:37 +00:00
mycroft 7e59c0d1fc Fix typo in date format. 1994-09-18 00:14:39 +00:00
pk 6b619f18ed Use tcflush(). 1994-09-05 09:09:43 +00:00
pk 437ee32a52 Set control flags properly while in read mode.
Supply process ID when syslogging.
1994-09-05 08:52:49 +00:00
mycroft 2f65aa5da5 Fix pad insertion for termios. 1994-08-24 16:42:23 +00:00
mycroft d72774f29d Use cfset[io]speed() to set termios speeds, per POSIX. 1994-08-24 07:54:50 +00:00
pk fe82241620 Cleanup import, merge local changes. 1994-08-17 20:10:27 +00:00
pk 7243f6f6fb Towards termios. 1994-04-28 22:12:28 +00:00
pk 0816b2a18c TIOCFLUSH requires argument 1994-03-17 13:55:48 +00:00
cgd 03fe423b30 fix bin/140: use getcap(3) routines 1994-03-09 04:59:55 +00:00
mycroft 7aaedc30b0 We don't need or want set_ttydefaults(). 1994-03-08 06:40:04 +00:00
mycroft cea87043b4 Add some more magic cookies for the `im' string to display info from
uname(2):

	%s	sysname
	%r	release
	%v	version
	%m	machine
1993-08-29 22:47:03 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00