diff --git a/gdm-2.26.0-fix-lang-regex.patch b/gdm-2.26.0-fix-lang-regex.patch new file mode 100644 index 0000000..bf95dca --- /dev/null +++ b/gdm-2.26.0-fix-lang-regex.patch @@ -0,0 +1,22 @@ +commit 74cdbc6d71120f2d9c91965ead989f68cadb4bac +Author: Ray Strode +Date: Wed Jun 3 23:52:06 2009 -0400 + + Fix language name parsing regex + + It didn't properly escape the "." character so it was allowing + any character to be matched instead of just periods. + +diff --git a/gui/simple-greeter/gdm-languages.c b/gui/simple-greeter/gdm-languages.c +index 2d862b2..429ba28 100644 +--- a/gui/simple-greeter/gdm-languages.c ++++ b/gui/simple-greeter/gdm-languages.c +@@ -123,7 +123,7 @@ gdm_parse_language_name (const char *name, + error = NULL; + re = g_regex_new ("^(?P[^_.@[:space:]]+)" + "(_(?P[[:upper:]]+))?" +- "(.(?P[-_0-9a-zA-Z]+))?" ++ "(\\.(?P[-_0-9a-zA-Z]+))?" + "(@(?P[[:ascii:]]+))?$", + 0, 0, &error); + if (re == NULL) { diff --git a/gdm.spec b/gdm.spec index 4524f13..b651558 100644 --- a/gdm.spec +++ b/gdm.spec @@ -16,7 +16,7 @@ Summary: The GNOME Display Manager Name: gdm Version: 2.26.1 -Release: 4%{?dist} +Release: 5%{?dist} Epoch: 1 License: GPLv2+ Group: User Interface/X @@ -98,6 +98,9 @@ Patch13: gdm-system-keyboard.patch Patch19: gdm-2.26.1-multistack.patch +# fixed upstream, rh 502778• +Patch22: gdm-2.26.0-fix-lang-regex.patch• + # Fedora-specific Patch99: gdm-2.23.1-fedora-logo.patch @@ -141,6 +144,7 @@ The GDM fingerprint plugin provides functionality necessary to use a fingerprint %patch13 -p1 -b .system-keyboard %patch19 -p1 -b .multistack +%patch22 -p1 -b .fix-lang-regex %patch99 -p1 -b .fedora-logo @@ -382,6 +386,9 @@ fi %{_libdir}/gdm/simple-greeter/plugins/fingerprint.so %changelog +* Wed Jun 03 2009 Ray Strode - 1:2.26.1-5 +- Fix language parsing code (bug 502778) + * Mon Apr 27 2009 Matthias Clasen - 1:2.26.1-4 - Don't drop schemas translations from po files