[packages/lightdm] cherry-picked "Remove unused unititialized file descriptors - could cause stdin to be closed"
atler
atler at pld-linux.org
Fri Jul 29 21:47:35 CEST 2016
commit 5c2715b762a50a8b2fbe9d0bcdeff12416f6ae63
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Jul 29 21:46:16 2016 +0200
cherry-picked "Remove unused unititialized file descriptors - could cause stdin to be closed"
- fixes regression in logout
- renumbered patches
- rel 2
lightdm-fd.patch | 24 ++++++++++++++++++++++++
lightdm.spec | 10 ++++++----
2 files changed, 30 insertions(+), 4 deletions(-)
---
diff --git a/lightdm.spec b/lightdm.spec
index 2a0bfa8..607d079 100644
--- a/lightdm.spec
+++ b/lightdm.spec
@@ -8,7 +8,7 @@ Summary(hu.UTF-8): Egy könnyűsúlyú bejelentkezéskezelő
Name: lightdm
# Odd versions are development, use only Even versions here (1.x = x odd/even)
Version: 1.18.2
-Release: 1
+Release: 2
# library/bindings are LGPLv2 or LGPLv3, the rest GPLv3+
License: (LGPLv2 or LGPLv3) and GPLv3+
Group: X11/Applications
@@ -20,8 +20,9 @@ Source3: %{name}-greeter.pamd
Source4: %{name}.init
Source5: %{name}-tmpfiles.conf
Patch0: config.patch
-Patch2: %{name}-nodaemon_option.patch
-Patch3: %{name}-qt5.patch
+Patch1: %{name}-nodaemon_option.patch
+Patch2: %{name}-qt5.patch
+Patch3: %{name}-fd.patch
URL: http://www.freedesktop.org/wiki/Software/LightDM
BuildRequires: autoconf
BuildRequires: automake >= 1:1.11
@@ -189,7 +190,8 @@ Bashowe uzupełnianie parametrów dla LightDM.
%prep
%setup -q
%patch0 -p1
-%patch2 -p1
+%patch1 -p1
+%patch2 -p0
%patch3 -p0
%build
diff --git a/lightdm-fd.patch b/lightdm-fd.patch
new file mode 100644
index 0000000..2ad092e
--- /dev/null
+++ b/lightdm-fd.patch
@@ -0,0 +1,24 @@
+=== modified file 'src/greeter-session.c'
+--- src/greeter-session.c 2016-06-29 03:15:44 +0000
++++ src/greeter-session.c 2016-06-29 03:16:05 +0000
+@@ -21,10 +21,6 @@
+ {
+ /* Greeter running inside this session */
+ Greeter *greeter;
+-
+- /* Communication channels to communicate with */
+- int to_greeter_input;
+- int from_greeter_output;
+ };
+
+ G_DEFINE_TYPE (GreeterSession, greeter_session, SESSION_TYPE);
+@@ -108,8 +104,6 @@
+ GreeterSession *self = GREETER_SESSION (object);
+
+ g_clear_object (&self->priv->greeter);
+- close (self->priv->to_greeter_input);
+- close (self->priv->from_greeter_output);
+
+ G_OBJECT_CLASS (greeter_session_parent_class)->finalize (object);
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lightdm.git/commitdiff/5c2715b762a50a8b2fbe9d0bcdeff12416f6ae63
More information about the pld-cvs-commit
mailing list