OpenBSD release(s):
1.56 (79 78 77 76),
1.54 (75 74 73 72 71 70 69 68 67 66),
1.51 (65),
1.49 (64),
1.48 (63 62),
1.43 (61),
1.42 (60),
1.41 (59),
1.37 (58),
1.35 (57),
1.32 (56 55),
1.31 (54),
1.30 (53 52 51 50 49 48 47),
1.29 (46 45 44 43),
1.28 (42 41 40 39 38 37 36 35 34),
1.24 (33 32),
1.22 (31),
1.19 (30),
1.18 (29),
1.15 (28),
1.14 (27),
1.12 (26 25 24),
1.11 (23),
1.10 (22),
1.7 (21),
1.4 (20),
Tags:
1.1.1.1 (netbsd_1_1),
revision 1.56/
(Download) -
annotate -
Fri, 19 Jul 2024 15:28:51 UTC by bluhm
OpenBSD release(s): 79 78 77 76
Changes since 1.55:
+3 -2
(diff)
unveil(2) /etc/gettytab.db in getty(8) to avoid possible violation.
OK deraadt@
revision 1.55/
(Download) -
annotate -
Sun, 28 Apr 2024 16:42:53 UTC by florian
Changes since 1.54:
+7 -5
(diff)
gmtime(3) / locatime(3) can fail when timestamps are way off.
Add missing error checks to all calls under libexec/
Input & OK millert
revision 1.54/
(Download) -
annotate -
Fri, 28 Jun 2019 13:32:53 UTC by deraadt
OpenBSD release(s): 75 74 73 72 71 70 69 68 67 66
Changes since 1.53:
+5 -5
(diff)
When system calls indicate an error they return -1, not some arbitrary
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.
revision 1.53/
(Download) -
annotate -
Sun, 23 Jun 2019 18:54:24 UTC by rob
Changes since 1.52:
+5 -1
(diff)
Explicitly lock unveil. Noticed when testing the recent ps(1) commit exposing
the unveil state of running processes.
ok deraadt@
revision 1.52/
(Download) -
annotate -
Wed, 01 May 2019 14:13:12 UTC by florian
Changes since 1.51:
+3 -2
(diff)
Pull tname initialization up since it's used in an error path.
Pointed out by jsg, just fix it deraadt@
revision 1.51/
(Download) -
annotate -
Sat, 17 Nov 2018 01:40:51 UTC by deraadt
OpenBSD release(s): 65
Changes since 1.50:
+2 -1
(diff)
need to closefrom(0) before execve(), otherwise tty isn't properly
'hung up'; some testing by Theodore Wynnychenko
revision 1.50/
(Download) -
annotate -
Thu, 15 Nov 2018 03:04:10 UTC by deraadt
Changes since 1.49:
+24 -9
(diff)
Theodore Wynnychenko discovered the gettytab "lo=path" feature didn't work
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
revision 1.49/
(Download) -
annotate -
Mon, 24 Sep 2018 21:30:00 UTC by deraadt
OpenBSD release(s): 64
Changes since 1.48:
+14 -1
(diff)
unveil(2) in getty. This has been in snaps for more than 2 months,
since I worry that a mistake in here will cause significant grief.
revision 1.48/
(Download) -
annotate -
Mon, 29 May 2017 04:40:35 UTC by deraadt
OpenBSD release(s): 63 62
Changes since 1.47:
+2 -3
(diff)
do not need dev[] wasting bss space
revision 1.47/
(Download) -
annotate -
Sun, 28 May 2017 08:51:06 UTC by deraadt
Changes since 1.46:
+18 -7
(diff)
Do a better job of not printing sequences we cannot reverse in DELETE or
KILL. Therefore we can do a better job cleaning up.
testing by benno
revision 1.46/
(Download) -
annotate -
Sat, 27 May 2017 09:34:55 UTC by deraadt
Changes since 1.45:
+6 -2
(diff)
Stop echoing ANSI sequences back to the console, by expanding ESC character
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
revision 1.45/
(Download) -
annotate -
Sat, 27 May 2017 09:31:13 UTC by deraadt
Changes since 1.44:
+3 -3
(diff)
Stop supporting primordial # (erase) and @ (kill) sequences.
ok tedu
revision 1.44/
(Download) -
annotate -
Sat, 27 May 2017 09:28:28 UTC by tedu
Changes since 1.43:
+3 -8
(diff)
remove the getname() code trying to handle baud < 1200 terminals.
leave the special down under code until somebody unearths why it exists.
revision 1.43/
(Download) -
annotate -
Mon, 23 Jan 2017 04:57:13 UTC by deraadt
OpenBSD release(s): 61
Changes since 1.42:
+6 -6
(diff)
pledge a tiny bit later. This results in the specified tty being
opened before the first pledge call.
testing by tb and benno and others
revision 1.42/
(Download) -
annotate -
Wed, 16 Mar 2016 15:41:10 UTC by krw
OpenBSD release(s): 60
Changes since 1.41:
+3 -3
(diff)
More "(<blah> *)0" -> NULL, avoiding any stdarg functions.
Feedback millert@ kettenis@
revision 1.41/
(Download) -
annotate -
Mon, 16 Nov 2015 18:37:30 UTC by deraadt
OpenBSD release(s): 59
Changes since 1.40:
+9 -3
(diff)
Observe that FIOASYNC clearing for stdin is only done in the case where
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
revision 1.40/
(Download) -
annotate -
Fri, 06 Nov 2015 16:42:30 UTC by tedu
Changes since 1.39:
+1 -11
(diff)
further PPP reduction, hint from sthen
revision 1.39/
(Download) -
annotate -
Fri, 06 Nov 2015 16:39:53 UTC by tedu
Changes since 1.38:
+4 -39
(diff)
remove ppplogin support. ok sthen
revision 1.38/
(Download) -
annotate -
Fri, 16 Oct 2015 22:25:50 UTC by deraadt
Changes since 1.37:
+8 -6
(diff)
Hoist clearing of FIOASYNC to much earlier, then getty can use
pledge "stdio rpath fattr proc exec tty".
revision 1.37/
(Download) -
annotate -
Thu, 16 Jul 2015 04:31:25 UTC by tedu
OpenBSD release(s): 58
Changes since 1.36:
+4 -4
(diff)
remove ancient support for edited hostnames. ok deraadt (long ago)
revision 1.36/
(Download) -
annotate -
Tue, 14 Apr 2015 02:24:17 UTC by millert
Changes since 1.35:
+10 -2
(diff)
Log a more useful error message if ttyname() fails. OK deraadt@
revision 1.35/
(Download) -
annotate -
Fri, 16 Jan 2015 05:53:49 UTC by deraadt
OpenBSD release(s): 57
Changes since 1.34:
+4 -4
(diff)
adjust to HOST_NAME_MAX+1 & LOGIN_NAME_MAX
revision 1.34/
(Download) -
annotate -
Wed, 19 Nov 2014 13:35:37 UTC by krw
Changes since 1.33:
+1 -2
(diff)
Nuke yet more obvious #include duplications.
ok deraadt@
revision 1.33/
(Download) -
annotate -
Tue, 18 Nov 2014 20:51:00 UTC by krw
Changes since 1.32:
+1 -2
(diff)
Nuke some obvious #include duplications.
ok espie@ deraadt@ millert@ tedu@
revision 1.32/
(Download) -
annotate -
Wed, 27 Nov 2013 21:25:25 UTC by deraadt
OpenBSD release(s): 56 55
Changes since 1.31:
+4 -4
(diff)
unsigned char for ctype
ok okan kettenis
revision 1.31/
(Download) -
annotate -
Tue, 04 Jun 2013 22:23:18 UTC by benno
OpenBSD release(s): 54
Changes since 1.30:
+2 -6
(diff)
do not go into upper to lower case translation mode when a all-caps
username has been entered.
ok deraadt@
revision 1.30/
(Download) -
annotate -
Tue, 27 Oct 2009 23:59:31 UTC by deraadt
OpenBSD release(s): 53 52 51 50 49 48 47
Changes since 1.29:
+1 -12
(diff)
rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
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
revision 1.29/
(Download) -
annotate -
Sat, 09 Feb 2008 10:13:34 UTC by mbalmer
OpenBSD release(s): 46 45 44 43
Changes since 1.28:
+4 -6
(diff)
Remove an old workaround that was needed in SCCS times (%M% expanding to the
filename).
ok mikeb, millert
revision 1.28/
(Download) -
annotate -
Tue, 29 Jul 2003 18:39:22 UTC by deraadt
OpenBSD release(s): 42 41 40 39 38 37 36 35 34
Changes since 1.27:
+3 -3
(diff)
spaces
revision 1.27/
(Download) -
annotate -
Sat, 05 Jul 2003 17:02:08 UTC by deraadt
Changes since 1.26:
+3 -3
(diff)
protos
revision 1.26/
(Download) -
annotate -
Wed, 25 Jun 2003 21:11:10 UTC by deraadt
Changes since 1.25:
+3 -6
(diff)
protos
revision 1.25/
(Download) -
annotate -
Mon, 02 Jun 2003 19:38:24 UTC by millert
Changes since 1.24:
+3 -7
(diff)
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
revision 1.24/
(Download) -
annotate -
Wed, 03 Jul 2002 23:39:03 UTC by deraadt
OpenBSD release(s): 33 32
Changes since 1.23:
+13 -20
(diff)
KNF
revision 1.23/
(Download) -
annotate -
Wed, 22 May 2002 06:35:43 UTC by deraadt
Changes since 1.22:
+3 -3
(diff)
a bunch more strcpy -> strlcpy and sprintf -> snprintf
revision 1.22/
(Download) -
annotate -
Fri, 29 Mar 2002 20:35:55 UTC by deraadt
OpenBSD release(s): 31
Changes since 1.21:
+3 -2
(diff)
-Wall
revision 1.21/
(Download) -
annotate -
Sat, 16 Feb 2002 21:27:30 UTC by millert
Changes since 1.20:
+9 -9
(diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
revision 1.20/
(Download) -
annotate -
Mon, 19 Nov 2001 22:35:04 UTC by deraadt
Changes since 1.19:
+33 -32
(diff)
remove the signal handler races and longjmps, and then do a bit of KNF
revision 1.19/
(Download) -
annotate -
Sun, 08 Jul 2001 21:18:08 UTC by deraadt
OpenBSD release(s): 30
Changes since 1.18:
+5 -5
(diff)
-Wall
revision 1.18/
(Download) -
annotate -
Wed, 31 Jan 2001 19:13:36 UTC by deraadt
OpenBSD release(s): 29
Changes since 1.17:
+3 -3
(diff)
more fat utmp; ianm@cit.uws.edu.au
revision 1.17/
(Download) -
annotate -
Sun, 28 Jan 2001 19:34:28 UTC by niklas
Changes since 1.16:
+3 -1
(diff)
$OpenBSD$
revision 1.16/
(Download) -
annotate -
Fri, 19 Jan 2001 18:02:26 UTC by deraadt
Changes since 1.15:
+4 -5
(diff)
mark remaining signal races
revision 1.15/
(Download) -
annotate -
Thu, 07 Sep 2000 17:02:23 UTC by deraadt
OpenBSD release(s): 28
Changes since 1.14:
+2 -2
(diff)
off by one overflow
revision 1.14/
(Download) -
annotate -
Thu, 09 Dec 1999 20:20:43 UTC by deraadt
OpenBSD release(s): 27
Changes since 1.13:
+3 -6
(diff)
oops
revision 1.13/
(Download) -
annotate -
Tue, 07 Dec 1999 19:24:27 UTC by deraadt
Changes since 1.12:
+7 -5
(diff)
do not crash if stdin is not a tty
revision 1.12/
(Download) -
annotate -
Fri, 10 Jul 1998 08:06:04 UTC by deraadt
OpenBSD release(s): 26 25 24
Changes since 1.11:
+2 -2
(diff)
do not syslog() with "\n"; skipped smtpd/named/ipmon; 12 minutes of dabbling
revision 1.11/
(Download) -
annotate -
Thu, 20 Nov 1997 07:39:27 UTC by deraadt
OpenBSD release(s): 23
Changes since 1.10:
+15 -15
(diff)
puts -> xputs
revision 1.10/
(Download) -
annotate -
Tue, 05 Aug 1997 23:37:35 UTC by angelos
OpenBSD release(s): 22
Changes since 1.9:
+1 -2
(diff)
Remove duplicate inclusion of signal.h
revision 1.9/
(Download) -
annotate -
Wed, 23 Jul 1997 20:36:25 UTC by kstailey
Changes since 1.8:
+7 -7
(diff)
tabify
revision 1.8/
(Download) -
annotate -
Mon, 02 Jun 1997 08:12:10 UTC by deraadt
Changes since 1.7:
+4 -1
(diff)
if getty to# parameter is used, pp option has timeout problem; kfurge@worldnet.att.net, freebsd pr#3733
revision 1.7/
(Download) -
annotate -
Sun, 06 Apr 1997 08:43:41 UTC by deraadt
OpenBSD release(s): 21
Changes since 1.6:
+2 -3
(diff)
clean -Wall
revision 1.6/
(Download) -
annotate -
Tue, 17 Dec 1996 19:33:53 UTC by tholo
Changes since 1.5:
+11 -7
(diff)
Add traditional handling of all upper-case input
revision 1.5/
(Download) -
annotate -
Tue, 10 Dec 1996 07:58:34 UTC by deraadt
Changes since 1.4:
+49 -4
(diff)
PPP autologin code from freebsd; do not use until pppd has been checked for security...
revision 1.4/
(Download) -
annotate -
Wed, 22 May 1996 12:10:13 UTC by deraadt
OpenBSD release(s): 20
Changes since 1.3:
+2 -1
(diff)
libutil
revision 1.3/
(Download) -
annotate -
Thu, 22 Feb 1996 10:39:28 UTC by niklas
Changes since 1.2:
+2 -2
(diff)
From NetBSD:
Make sure that the user name cannot ever be interpreted as an option to
login(8). Note: This does *not* fix any security holes.
revision 1.2/
(Download) -
annotate -
Mon, 13 Nov 1995 11:27:23 UTC by deraadt
Changes since 1.1:
+23 -23
(diff)
repair indentation
revision 1.1/
(Download) -
annotate -
Wed, 18 Oct 1995 08:43:17 UTC by deraadt
Branch point for:
1.1.1.1
Initial revision
revision 1.1.1.1/
(Download) -
annotate -
Wed, 18 Oct 1995 08:43:17 UTC by deraadt
Tags: netbsd_1_1
Changes since 1.1:
None
initial import of NetBSD tree