<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>12767</bug_id>
          
          <creation_ts>2002-12-27 00:25 0000</creation_ts>
          <short_desc>XDM does not write wtmp entries (patches for TakeConsole and GiveConsole)</short_desc>
          <delta_ts>2006-04-19 23:35:14 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>agenkin@gentoo.org</reporter>
          <assigned_to>x11@gentoo.org</assigned_to>
          <cc>jakub@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>agenkin@gentoo.org</who>
            <bug_when>2002-12-27 00:25:21 0000</bug_when>
            <thetext>Gentoo&apos;s XDM does not create wtmp or utmp entries for X console logins.  The
below patches to /etc/X11/xdm/GiveConsole and /etc/X11/xdm/TakeConsole fix this.

--- /tmp/GiveConsole	2002-12-27 00:39:32.000000000 -0500
+++ GiveConsole	2002-12-27 00:38:44.000000000 -0500
@@ -8,3 +8,5 @@
 # causing serious grief.
 #
 chown $USER /dev/console
+/usr/X11R6/bin/sessreg  -a -w &quot;/var/log/wtmp&quot; -u &quot;/var/run/utmp&quot; \
+        -x &quot;/etc/X11/xdm/Xservers&quot; -l $DISPLAY -h &quot;&quot; $USER

--- /tmp/TakeConsole	2002-12-27 00:39:32.000000000 -0500
+++ TakeConsole	2002-12-27 00:37:47.000000000 -0500
@@ -5,3 +5,5 @@
 #
 chmod 622 /dev/console
 chown root /dev/console
+/usr/X11R6/bin/sessreg -d -w &quot;/var/log/wtmp&quot; -u &quot;/var/run/utmp&quot; \
+	-x &quot;/etc/X11/xdm/Xservers&quot; -l $DISPLAY -h &quot;&quot; $USER</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-12-27 12:32:06 0000</bug_when>
            <thetext>Supposidly this is done in /etc/X11/gdm/PreSession/Default
and /etc/X11/gdm/PostSession/Default.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>agenkin@gentoo.org</who>
            <bug_when>2002-12-27 12:58:17 0000</bug_when>
            <thetext>I use the vanilla xdm here (not gdm), and the wtmp entries are definitely not
written.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2002-12-27 13:07:54 0000</bug_when>
            <thetext>Err, yes, sorry .. long night :/  Ill have a look.  Seems that for 4.2.99 and
later at least they started adding support for utemper, so for that it should
be fine if/when we get utemper in portage (if not already).
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>azarah@gentoo.org</who>
            <bug_when>2003-01-19 08:32:39 0000</bug_when>
            <thetext>Ill add this post 1.4.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2004-03-14 01:00:35 0000</bug_when>
            <thetext>Az seems busy. =)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2005-08-11 04:24:57 0000</bug_when>
            <thetext>Is this still even remotely relevant after 2 1/2 years?!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-03-31 19:13:43 0000</bug_when>
            <thetext>Yes, it remains relevant.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dberkholz@gentoo.org</who>
            <bug_when>2006-04-19 23:35:14 0000</bug_when>
            <thetext>Fixed (finally) in xdm-1.0.3-r1, thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>