Merge lp:~ari-tczew/ubuntu/karmic/gdm/lp-574262 into lp:ubuntu/karmic-proposed/gdm

Proposed by Artur Rona
Status: Merged
Merged at revision: 2
Proposed branch: lp:~ari-tczew/ubuntu/karmic/gdm/lp-574262
Merge into: lp:ubuntu/karmic-proposed/gdm
Diff against target: 88 lines (+76/-0)
2 files modified
debian/changelog (+7/-0)
debian/patches/26_echo_variables_postlogin.patch (+69/-0)
To merge this branch: bzr merge lp:~ari-tczew/ubuntu/karmic/gdm/lp-574262
Reviewer Review Type Date Requested Status
Sebastien Bacher Pending
Ubuntu Stable Release Updates Team Pending
Review via email: mp+24817@code.launchpad.net
To post a comment you must log in.
Revision history for this message
James Westby (james-w) wrote :

Hello Sebastien,

Could you take a look at this proposed change please?

Thanks,

James

Revision history for this message
Sebastien Bacher (seb128) wrote :

the changes to the path variable don't seem revelant to this bug? did you try if the update is working? I don't really have time for sponsoring this week and next week for sponsoring but the scope of change seems ok for a stable update, not sure the changes there are limited to what is required to fix the issue though

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2009-12-07 16:30:05 +0000
+++ debian/changelog 2010-05-06 12:03:28 +0000
@@ -1,3 +1,10 @@
1gdm (2.28.1-0ubuntu2.2) karmic-proposed; urgency=low
2
3 * debian/patches/26_echo_variables_postlogin.patch: (LP: #574262)
4 - Fix incorrect variables discarded by echo in /etc/PostLogin/Default
5
6 -- Artur Rona <ari-tczew@tlen.pl> Wed, 05 May 2010 21:33:11 +0200
7
1gdm (2.28.1-0ubuntu2.1) karmic-proposed; urgency=low8gdm (2.28.1-0ubuntu2.1) karmic-proposed; urgency=low
29
3 * debian/gdm.upstart: Do not fail with exit status !=0 on startup 10 * debian/gdm.upstart: Do not fail with exit status !=0 on startup
411
=== added file 'debian/patches/26_echo_variables_postlogin.patch'
--- debian/patches/26_echo_variables_postlogin.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/26_echo_variables_postlogin.patch 2010-05-06 12:03:28 +0000
@@ -0,0 +1,69 @@
1# From: Artur Rona <ari-tczew@tlen.pl>
2# Description: Cannot catch some variables in echo like $USER, $USERNAME, $LOGNAME in /etc/gdm/PostLogin/Default.
3# Bug: https://launchpad.net/bugs/574262
4# Origin: upstream, http://git.gnome.org/browse/gdm/commit/?id=e33ee9d9b23c103ac25b6fdb53fe8c074de0de53
5# http://git.gnome.org/browse/gdm/commit/?id=2ca6e0ec36536968a623bf3f855afab2ee47c5cf
6# Author: Brian Cameron, Christian Boos
7
8diff -pruN -x '*~' gdm-2.28.1.orig/daemon/gdm-simple-slave.c gdm-2.28.1/daemon/gdm-simple-slave.c
9--- gdm-2.28.1.orig/daemon/gdm-simple-slave.c 2009-10-20 00:12:45.000000000 +0200
10+++ gdm-2.28.1/daemon/gdm-simple-slave.c 2010-05-05 22:20:25.000000000 +0200
11@@ -334,6 +334,8 @@ try_migrate_session (GdmSimpleSlave *sla
12 static void
13 stop_greeter (GdmSimpleSlave *slave)
14 {
15+ char *username;
16+
17 g_debug ("GdmSimpleSlave: Stopping greeter");
18
19 if (slave->priv->greeter == NULL) {
20@@ -342,7 +344,11 @@ stop_greeter (GdmSimpleSlave *slave)
21 }
22
23 /* Run the PostLogin script. gdmslave suspends until script has terminated */
24- gdm_slave_run_script (GDM_SLAVE (slave), GDMCONFDIR "/PostLogin", GDM_USERNAME);
25+ username = gdm_session_direct_get_username (slave->priv->session);
26+
27+ if (username != NULL) {
28+ gdm_slave_run_script (GDM_SLAVE (slave), GDMCONFDIR "/PostLogin", username);
29+ }
30
31 gdm_welcome_session_stop (GDM_WELCOME_SESSION (slave->priv->greeter));
32 gdm_greeter_server_stop (slave->priv->greeter_server);
33diff -pruN -x '*~' gdm-2.28.1.orig/daemon/gdm-slave.c gdm-2.28.1/daemon/gdm-slave.c
34--- gdm-2.28.1.orig/daemon/gdm-slave.c 2009-10-20 00:12:45.000000000 +0200
35+++ gdm-2.28.1/daemon/gdm-slave.c 2010-05-05 22:21:16.000000000 +0200
36@@ -234,8 +234,7 @@ get_script_environment (GdmSlave *slav
37 g_hash_table_insert (hash, g_strdup ("XAUTHORITY"), g_strdup (slave->priv->display_x11_authority_file));
38 g_hash_table_insert (hash, g_strdup ("DISPLAY"), g_strdup (slave->priv->display_name));
39
40- /*g_setenv ("PATH", gdm_daemon_config_get_value_string (GDM_KEY_ROOT_PATH), TRUE);*/
41-
42+ g_hash_table_insert (hash, g_strdup ("PATH"), g_strdup (GDM_SESSION_DEFAULT_PATH));
43 g_hash_table_insert (hash, g_strdup ("RUNNING_UNDER_GDM"), g_strdup ("true"));
44
45 g_hash_table_remove (hash, "MAIL");
46diff -pruN -x '*~' gdm-2.28.1.orig/data/Init.in gdm-2.28.1/data/Init.in
47--- gdm-2.28.1.orig/data/Init.in 2010-05-05 22:14:21.000000000 +0200
48+++ gdm-2.28.1/data/Init.in 2010-05-05 22:21:53.000000000 +0200
49@@ -3,7 +3,7 @@
50 # Plus a lot of fun stuff added
51 # -George
52
53-PATH=@X_PATH@:$PATH
54+PATH="@X_PATH@:$PATH"
55 OLD_IFS=$IFS
56
57 if [ -x '/usr/bin/xsplash' ];
58diff -pruN -x '*~' gdm-2.28.1.orig/data/PreSession.in gdm-2.28.1/data/PreSession.in
59--- gdm-2.28.1.orig/data/PreSession.in 2010-05-05 22:15:08.000000000 +0200
60+++ gdm-2.28.1/data/PreSession.in 2010-05-05 22:22:25.000000000 +0200
61@@ -6,7 +6,7 @@
62 #
63 # Note that output goes into the .xsession-errors file for easy debugging
64 #
65-PATH="@X_PATH@:$PATH:/bin:/usr/bin"
66+PATH="@X_PATH@:$PATH"
67
68 if [ -x '/usr/bin/xsplash' ];
69 then

Subscribers

People subscribed via source and target branches

to all changes: