From a730e307f5117ea39344c5456be6af1703477df7 Mon Sep 17 00:00:00 2001 From: rpe <> Date: Sat, 10 Sep 2016 12:50:20 +0000 Subject: [PATCH] Unbreak ksh.kshrc by using a MI way of finding out the console device name. Found by landry OK deraadt --- src/etc/ksh.kshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/etc/ksh.kshrc b/src/etc/ksh.kshrc index 2d04c1df..7de34f90 100644 --- a/src/etc/ksh.kshrc +++ b/src/etc/ksh.kshrc @@ -1,5 +1,5 @@ : -# $OpenBSD: ksh.kshrc,v 1.25 2016/09/10 09:44:49 rpe Exp $ +# $OpenBSD: ksh.kshrc,v 1.26 2016/09/10 12:50:20 rpe Exp $ # # NAME: # ksh.kshrc - global initialization for ksh @@ -53,7 +53,7 @@ case "$-" in tty=`basename $tty` TTY=${TTY:-$tty} # $console is the system console device - console=$(sysctl machdep.console_device) + console=$(sysctl kern.consdev) console=${console#*=} set -o emacs