diff --git a/lightdm-1.30-fix_xauthority_corruption.patch b/lightdm-1.30-fix_xauthority_corruption.patch new file mode 100644 index 0000000..f5ecc78 --- /dev/null +++ b/lightdm-1.30-fix_xauthority_corruption.patch @@ -0,0 +1,24 @@ +From 42dc9dc5865d26ba37ca3c07d3a97d4de03b7909 Mon Sep 17 00:00:00 2001 +From: sinirajapan <87935975+sinirajapan@users.noreply.github.com> +Date: Thu, 29 Jul 2021 21:58:41 +0900 +Subject: [PATCH] Update x-authority.c + +No O_TRUNC causes the xauthority file corruption. +In case the address of XDMCP DISPLAY length differs. +--- + src/x-authority.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/x-authority.c b/src/x-authority.c +index baaf4bea4..a04f76a6d 100644 +--- a/src/x-authority.c ++++ b/src/x-authority.c +@@ -320,7 +320,7 @@ x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, + + /* Write records back */ + errno = 0; +- int output_fd = g_open (filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR); ++ int output_fd = g_open (filename, O_WRONLY | O_CREAT | O_TRUNC , S_IRUSR | S_IWUSR); + if (output_fd < 0) + { + g_set_error (error, diff --git a/lightdm.spec b/lightdm.spec index 152f26c..9b82b04 100644 --- a/lightdm.spec +++ b/lightdm.spec @@ -11,7 +11,7 @@ Name: lightdm Summary: A cross-desktop Display Manager Version: 1.30.0 -Release: 16%{?dist} +Release: 17%{?dist} %if 0%{?rhel} >= 8 # Exclude failing arch @@ -49,6 +49,8 @@ Patch0: gcc-10.patch Patch1: %{giturl}/pull/5.patch#/lightdm-1.25.1-disable_dmrc.patch # Upstream commits +# rhbz#2093668 +Patch2: %{giturl}/commit/42dc9dc5865d26ba37ca3c07d3a97d4de03b7909.patch#/lightdm-1.30-fix_xauthority_corruption.patch BuildRequires: gettext BuildRequires: gnome-common @@ -325,6 +327,10 @@ fi %changelog +* Sun Jun 05 2022 Leigh Scott - 1.30.0-17 +- Fix xauthority corruption (rhbz#2093668) +- Add missing requires for post scriptlet (rhbz#2093698) + * Thu Jan 20 2022 Fedora Release Engineering - 1.30.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild