From 137819faff4a14458760167ab1c8078998608bae Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Wed, 11 Jul 2018 19:20:41 +0000 Subject: sessreg -x is useless if not updating utmp. Remove it. Also don't try to remove utmp lines that were not written. --- config/GiveConsole | 2 +- config/TakeConsole | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/GiveConsole b/config/GiveConsole index b209f17..824856f 100644 --- a/config/GiveConsole +++ b/config/GiveConsole @@ -11,4 +11,4 @@ chown $USER /dev/console if [ -c /dev/drm0 ]; then chown $USER /dev/drm0 fi -/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none -x /etc/X11/xenodm/Xservers $USER +/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER diff --git a/config/TakeConsole b/config/TakeConsole index 7cce126..a7ae840 100644 --- a/config/TakeConsole +++ b/config/TakeConsole @@ -1,11 +1,11 @@ #!/bin/sh # Reassign ownership of the console to root, this should disallow # assignment of console output to any random users's xterm -# $OpenBSD: TakeConsole,v 1.2 2017/10/04 18:28:59 matthieu Exp $ +# $OpenBSD: TakeConsole,v 1.3 2018/07/11 19:20:40 matthieu Exp $ # chown root /dev/console chmod 622 /dev/console if [ -c /dev/drm0 ]; then chown root /dev/drm0 fi -/usr/X11R6/bin/sessreg -d -l $DISPLAY -u /var/run/utmp -x /etc/X11/xenodm/Xservers $USER +/usr/X11R6/bin/sessreg -d -l $DISPLAY -u none $USER -- cgit v1.2.3