[PATCH 2/4] Properly register session with utmp.

Matěj Cepl mcepl at redhat.com
Mon Aug 8 12:26:48 PDT 2011


Fixing https://bugzilla.redhat.com/177890
Patch by Wilfried Teiken (wteikens at @teiken dot org)

I guess we should have corresponding sessreg -d call in config/TakeConsole
as well, right?

Signed-off-by: Matěj Cepl <mcepl at redhat.com>
---
 config/GiveConsole |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/config/GiveConsole b/config/GiveConsole
index f8a8c6d..d201a5c 100644
--- a/config/GiveConsole
+++ b/config/GiveConsole
@@ -7,3 +7,5 @@
 # causing serious grief.
 #
 chown $USER /dev/console
+exec /usr/bin/sessreg  -a -w "/var/log/wtmp" -u "/var/run/utmp" \
+        -x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
-- 
1.7.6



More information about the xorg-devel mailing list