rpms/gdm/F-11 gdm-2.26.0-fix-lang-regex.patch, NONE, 1.1 gdm.spec, 1.472, 1.473

Ray Strode rstrode at fedoraproject.org
Thu Jun 4 03:56:57 UTC 2009


Author: rstrode

Update of /cvs/pkgs/rpms/gdm/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17921

Modified Files:
	gdm.spec 
Added Files:
	gdm-2.26.0-fix-lang-regex.patch 
Log Message:
- Fix language parsing code (bug 502778)


gdm-2.26.0-fix-lang-regex.patch:

--- NEW FILE gdm-2.26.0-fix-lang-regex.patch ---
commit 74cdbc6d71120f2d9c91965ead989f68cadb4bac
Author: Ray Strode <rstrode at redhat.com>
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<language>[^_.@[:space:]]+)"
                           "(_(?P<territory>[[:upper:]]+))?"
-                          "(.(?P<codeset>[-_0-9a-zA-Z]+))?"
+                          "(\\.(?P<codeset>[-_0-9a-zA-Z]+))?"
                           "(@(?P<modifier>[[:ascii:]]+))?$",
                           0, 0, &error);
         if (re == NULL) {


Index: gdm.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gdm/F-11/gdm.spec,v
retrieving revision 1.472
retrieving revision 1.473
diff -u -p -r1.472 -r1.473
--- gdm.spec	13 May 2009 17:54:00 -0000	1.472
+++ gdm.spec	4 Jun 2009 03:56:25 -0000	1.473
@@ -16,7 +16,7 @@
 Summary: The GNOME Display Manager
 Name: gdm
 Version: 2.26.1
-Release: 10%{?dist}
+Release: 11%{?dist}
 Epoch: 1
 License: GPLv2+
 Group: User Interface/X
@@ -103,6 +103,9 @@ Patch20: session-client.patch
 # fixed upstream
 Patch21: xdmcp-use-after-free.patch
 
+# fixed upstream, rh 502778
+Patch22: gdm-2.26.0-fix-lang-regex.patch
+
 # Fedora-specific
 Patch99: gdm-2.23.1-fedora-logo.patch
 
@@ -148,6 +151,7 @@ The GDM fingerprint plugin provides func
 
 %patch20 -p1 -b .session-client
 %patch21 -p1 -b .xdmcp-use-after-free
+%patch22 -p1 -b .fix-lang-regex
 
 %patch99 -p1 -b .fedora-logo
 
@@ -389,6 +393,9 @@ fi
 %{_libdir}/gdm/simple-greeter/plugins/fingerprint.so
 
 %changelog
+* Wed Jun 03 2009 Ray Strode <rstrode at redhat.com> - 1:2.26.1-11
+- Fix language parsing code (bug 502778)
+
 * Wed May 13 2009 Ray Strode <rstrode at redhat.com> - 1:2.26.1-10
 - Update multi-stack patch to fix bug 499272
 




More information about the fedora-extras-commits mailing list