From cf6f1993090d4cb53ba046d34f69e9474cbccc94 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 11 Mar 2009 17:20:44 +0000 Subject: [PATCH] - xau-1.0.4-local.patch: When looking for an auth cookie on local transport, don't bother checking hostname, it can't possibly help. --- libXau.spec | 9 ++++++++- xau-1.0.4-local.patch | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 xau-1.0.4-local.patch diff --git a/libXau.spec b/libXau.spec index 355740f..7dad86f 100644 --- a/libXau.spec +++ b/libXau.spec @@ -1,7 +1,7 @@ Summary: X.Org X11 libXau runtime library Name: libXau Version: 1.0.4 -Release: 3%{?dist} +Release: 4%{?dist} License: MIT Group: System Environment/Libraries URL: http://www.x.org @@ -9,6 +9,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2 +Patch0: xau-1.0.4-local.patch + BuildRequires: pkgconfig BuildRequires: xorg-x11-proto-devel @@ -29,6 +31,7 @@ X.Org X11 libXau development package %prep %setup -q +%patch0 -p1 -b .local %build @@ -65,6 +68,10 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/*.3* %changelog +* Wed Mar 11 2009 Adam Jackson 1.0.4-4 +- xau-1.0.4-local.patch: When looking for an auth cookie on local transport, + don't bother checking hostname, it can't possibly help. + * Wed Feb 25 2009 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild diff --git a/xau-1.0.4-local.patch b/xau-1.0.4-local.patch new file mode 100644 index 0000000..26b578b --- /dev/null +++ b/xau-1.0.4-local.patch @@ -0,0 +1,22 @@ +diff --git a/AuGetBest.c b/AuGetBest.c +index ae2b748..5d92dad 100644 +--- a/AuGetBest.c ++++ b/AuGetBest.c +@@ -120,7 +120,8 @@ XauGetBestAuthByAddr ( + * Match when: + * either family or entry->family are FamilyWild or + * family and entry->family are the same and +- * address and entry->address are the same ++ * address and entry->address are the same or ++ * family is FamilyLocal + * and + * either number or entry->number are empty or + * number and entry->number are the same +@@ -139,6 +140,7 @@ XauGetBestAuthByAddr ( + binaryEqual (entry->address, fully_qual_address, + (int) fully_qual_address_length)) + #endif ++ || (family == FamilyLocal) + ))) && + (number_length == 0 || entry->number_length == 0 || + (number_length == entry->number_length &&