libXau/xau-1.0.4-local.patch
Adam Jackson cf6f199309 - 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.
2009-03-11 17:20:44 +00:00

23 lines
813 B
Diff

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 &&