Your message dated Mon, 29 Sep 2008 16:47:04 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#499995: fixed in ldm 2:2.0.6-3
has caused the Debian Bug report #499995,
regarding ldm: when user selects session, /etc/X11/Xsession isn't used
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
499995: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499995
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: ldm
Version: 2:2.0.6-2
Severity: important
Tags: patch

when logging in using ldm, if a user selects a session from the
preferences menu, ldm does not use /etc/X11/Xsession (it calls the
session/window manager binary directly), and then all the hooks in
/etc/X11/Xsession.d are not called, resulting in a session that isn't
consistant with the default session.

attached is a patch to fix this, backported from upstream bzr.

live well,
  vagrant

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
#! /bin/sh /usr/share/dpatch/dpatch-run
## xsession-with-selected-session-lenny.dpatch by Vagrant Cascadian <[EMAIL 
PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.

## DP: use /etc/X11/Xsession when user selects session from menu, instead of
## DP: calling the selected session directly. backported from upstream for
## DP: lenny.

@DPATCH@
diff -urNad ldm-2.0.6~/src/ldm.c ldm-2.0.6/src/ldm.c
--- ldm-2.0.6~/src/ldm.c        2008-09-23 23:25:40.000000000 -0700
+++ ldm-2.0.6/src/ldm.c 2008-09-23 23:32:51.000000000 -0700
@@ -303,7 +303,13 @@
         }
     }
             
-    cmd[i++] = ldminfo.session;
+    cmd[i++] = ldminfo.xsession;
+    if (*ldminfo.session == '\0') {
+            cmd[i++] = "default";
+        } else {
+            cmd[i++] = ldminfo.session;
+        }
+
 
     if (ldminfo.localdev) {
         cmd[i++] = ";";        /* closes bug number 121254 */
@@ -453,22 +459,23 @@
     ldminfo.force_logout = ldm_getenv_bool("LDM_FORCE_LOGOUT");
     scopy(ldminfo.lang, getenv("LDM_LANGUAGE"));
     scopy(ldminfo.session, getenv("LDM_SESSION"));
-    if (*ldminfo.session == '\0') {
+    scopy(ldminfo.xsession, getenv("LDM_XSESSION"));
+    if (*ldminfo.xsession == '\0') {
         if(!access("/etc/X11/xinit/Xsession", X_OK)) {
             /* Fedora, RHEL, CentOS, etc. */
-            scopy(ldminfo.session, "/etc/X11/xinit/Xsession");
+            scopy(ldminfo.xsession, "/etc/X11/xinit/Xsession");
         }
         else if(!access("/etc/X11/Xsession", X_OK)) {
             /* Debian, Ubuntu */
-            scopy(ldminfo.session, "/etc/X11/Xsession");
+            scopy(ldminfo.xsession, "/etc/X11/Xsession");
         }
         else if(!access("/usr/lib/X11/xdm/Xsession", X_OK)) {
             /* Gentoo */
-            scopy(ldminfo.session, "/usr/lib/X11/xdm/Xsession");
+            scopy(ldminfo.xsession, "/usr/lib/X11/xdm/Xsession");
         }
         else if(!access("/etc/X11/xdm/Xsession", X_OK)) {
             /* OpenSUSE */
-            scopy(ldminfo.session, "/etc/X11/xdm/Xsession");
+            scopy(ldminfo.xsession, "/etc/X11/xdm/Xsession");
         }
     }
     scopy(ldminfo.greeter_prog, getenv("LDM_GREETER"));
diff -urNad ldm-2.0.6~/src/ldm.h ldm-2.0.6/src/ldm.h
--- ldm-2.0.6~/src/ldm.h        2008-09-23 23:25:40.000000000 -0700
+++ ldm-2.0.6/src/ldm.h 2008-09-23 23:33:16.000000000 -0700
@@ -12,6 +12,7 @@
     char    password[LDMSTRSZ];
     char    lang[LDMSTRSZ];
     char    session[LDMSTRSZ];
+    char    xsession[LDMSTRSZ];
     char    sound_daemon[LDMSTRSZ];
     char    greeter_prog[LDMSTRSZ];
     char    control_socket[LDMSTRSZ];

--- End Message ---
--- Begin Message ---
Source: ldm
Source-Version: 2:2.0.6-3

We believe that the bug you reported is fixed in the latest version of
ldm, which is due to be installed in the Debian FTP archive:

ldm_2.0.6-3.diff.gz
  to pool/main/l/ldm/ldm_2.0.6-3.diff.gz
ldm_2.0.6-3.dsc
  to pool/main/l/ldm/ldm_2.0.6-3.dsc
ldm_2.0.6-3_i386.deb
  to pool/main/l/ldm/ldm_2.0.6-3_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vagrant Cascadian <[EMAIL PROTECTED]> (supplier of updated ldm package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Mon, 29 Sep 2008 09:00:50 -0700
Source: ldm
Binary: ldm
Architecture: source i386
Version: 2:2.0.6-3
Distribution: unstable
Urgency: low
Maintainer: LTSP Debian/Ubuntu Maintainers <[EMAIL PROTECTED]>
Changed-By: Vagrant Cascadian <[EMAIL PROTECTED]>
Description: 
 ldm        - LTSP display manager
Closes: 499995
Changes: 
 ldm (2:2.0.6-3) unstable; urgency=low
 .
   * backported patch from upstream to use /etc/X11/Xsession when user has
     selected a session from login menu. (Closes: #499995)
   * add debian/README.source explaining use of dpatch
   * add Ryan Niebur to Uploaders
Checksums-Sha1: 
 ecda5849409562e5beed0cc0dc6c6214ecc9aca1 1424 ldm_2.0.6-3.dsc
 c69d0c9b31480d59f1c3e6f6d47260befc602d04 9399 ldm_2.0.6-3.diff.gz
 0998db92049259fa8c15fde7d006bb1a7bae9d48 155414 ldm_2.0.6-3_i386.deb
Checksums-Sha256: 
 9d7f2796690f16e5722f257ae74ea8569e0eaf80723e852f1737f8fe1ad2a3fc 1424 
ldm_2.0.6-3.dsc
 40bfcc7ee0a6937cb545b030c5d8633d458aeb713963d9207c13be09502211aa 9399 
ldm_2.0.6-3.diff.gz
 ece5bfeb2648da622ff28feac54fb51412a3c256b46070d12a954bc69a1b66da 155414 
ldm_2.0.6-3_i386.deb
Files: 
 7069b6fb8fe50f49be9ecc42b8898183 1424 misc extra ldm_2.0.6-3.dsc
 9cc0fbd5c60cca670af6579374e7689b 9399 misc extra ldm_2.0.6-3.diff.gz
 23f5d7bf812005d52421011cd8944154 155414 misc extra ldm_2.0.6-3_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkjhAtcACgkQlPc63BPWGpkjoACfa6qZGRs1+M72J29joFiqXxVm
cPEAoJcVelhDBNDz7XgQMamRW2fKNB2c
=ClyJ
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to