summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-07-11 19:20:41 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2020-07-14 15:52:41 +0200
commit137819faff4a14458760167ab1c8078998608bae (patch)
treef6e63c7e6861b228166388a68100d0b29b88f831
parentbaa348f8d3f9b485a36ad6c697ed28e7c8d886e5 (diff)
sessreg -x is useless if not updating utmp. Remove it. Also don't try to remove utmp lines that were not written.
-rw-r--r--config/GiveConsole2
-rw-r--r--config/TakeConsole4
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