summaryrefslogtreecommitdiff
path: root/source/x/x11
diff options
context:
space:
mode:
authorPatrick J Volkerding <volkerdi@slackware.com>2018-08-27 20:27:22 +0000
committerEric Hameleers <alien@slackware.com>2018-08-28 09:00:35 +0200
commitb70192b9212452c9cca2049c9e718ea7d88dd765 (patch)
tree9144e8186e09d92f269b5bb49a5579e297857730 /source/x/x11
parent0cb1f4c725ab13afe5aa3c1f488d665e4db1a304 (diff)
downloadcurrent-b70192b9212452c9cca2049c9e718ea7d88dd765.tar.gz
Mon Aug 27 20:27:22 UTC 201820180827202722
a/kernel-firmware-20180825_fea76a0-noarch-1.txz: Upgraded. ap/vim-8.1.0328-x86_64-1.txz: Upgraded. d/meson-0.47.2-x86_64-1.txz: Upgraded. d/python-setuptools-40.2.0-x86_64-1.txz: Upgraded. l/python-certifi-2018.8.24-x86_64-1.txz: Upgraded. l/python-idna-2.7-x86_64-1.txz: Upgraded. l/python-packaging-17.1-x86_64-1.txz: Upgraded. l/python-pillow-5.2.0-x86_64-1.txz: Upgraded. l/python-requests-2.19.1-x86_64-1.txz: Upgraded. l/python-urllib3-1.23-x86_64-1.txz: Upgraded. l/talloc-2.1.14-x86_64-1.txz: Upgraded. l/tdb-1.3.16-x86_64-1.txz: Upgraded. l/tevent-0.9.37-x86_64-1.txz: Upgraded. n/ethtool-4.18-x86_64-1.txz: Upgraded. n/openssh-7.8p1-x86_64-1.txz: Upgraded. n/samba-4.8.5-x86_64-1.txz: Upgraded. x/xauth-1.0.10-x86_64-3.txz: Rebuilt. Patched to fix a bug where changing the hostname caused X access to be lost. Thanks to TurboBlaze. xap/vim-gvim-8.1.0328-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/x/x11')
-rw-r--r--source/x/x11/build/xauth2
-rw-r--r--source/x/x11/patch/xauth.patch3
-rw-r--r--source/x/x11/patch/xauth/xauth.bc78aa61cfbddaa27dee275f639ba40de6981b17.patch44
3 files changed, 48 insertions, 1 deletions
diff --git a/source/x/x11/build/xauth b/source/x/x11/build/xauth
index 0cfbf088..00750edc 100644
--- a/source/x/x11/build/xauth
+++ b/source/x/x11/build/xauth
@@ -1 +1 @@
-2
+3
diff --git a/source/x/x11/patch/xauth.patch b/source/x/x11/patch/xauth.patch
new file mode 100644
index 00000000..4348e2ab
--- /dev/null
+++ b/source/x/x11/patch/xauth.patch
@@ -0,0 +1,3 @@
+# Fix a bug where changing the hostname causes access to X to be lost:
+zcat $CWD/patch/xauth/xauth.bc78aa61cfbddaa27dee275f639ba40de6981b17.patch.gz \
+ | patch -p2 --verbose || { touch ${SLACK_X_BUILD_DIR}/${PKGNAME}.failed ; continue ; }
diff --git a/source/x/x11/patch/xauth/xauth.bc78aa61cfbddaa27dee275f639ba40de6981b17.patch b/source/x/x11/patch/xauth/xauth.bc78aa61cfbddaa27dee275f639ba40de6981b17.patch
new file mode 100644
index 00000000..96fe5d0c
--- /dev/null
+++ b/source/x/x11/patch/xauth/xauth.bc78aa61cfbddaa27dee275f639ba40de6981b17.patch
@@ -0,0 +1,44 @@
+From bc78aa61cfbddaa27dee275f639ba40de6981b17 Mon Sep 17 00:00:00 2001
+From: George V. Kouryachy (Fr. Br. George) <george@altlinux.ru>
+Date: Fri, 4 Aug 2017 18:37:33 +0300
+Subject: [PATCH] parse_displayname: use FamilyWild for *:0
+
+---
+ xauth/gethost.c | 4 ++++
+ xauth/parsedpy.c | 4 ++++
+ 2 files changed, 8 insertions(+), 0 deletions(-)
+
+diff --git a/xauth/gethost.c b/xauth/gethost.c
+index 8cb58c5..598ac48 100644
+--- a/xauth/gethost.c
++++ b/xauth/gethost.c
+@@ -180,6 +180,10 @@ struct addrlist *get_address_info (
+ * information to be copied and set len to the number of bytes.
+ */
+ switch (family) {
++ case FamilyWild: /* was :0 */
++ src = "\xff\xff";
++ len = strlen(src);
++ break;
+ case FamilyLocal: /* hostname/unix:0 */
+ /* handle unix:0 and :0 specially */
+ if (prefix == 0 && (strncmp (fulldpyname, "unix:", 5) == 0 ||
+diff --git a/xauth/parsedpy.c b/xauth/parsedpy.c
+index 97988d3..6c98339 100644
+--- a/xauth/parsedpy.c
++++ b/xauth/parsedpy.c
+@@ -141,6 +141,10 @@ parse_displayname (const char *displayname,
+ family = FamilyInternet;
+ }
+ #endif
++ } else if (len == 1 && *displayname == '*') {
++ /* ALT: wildcard cookie */
++ host = copystring("*", 1);
++ family = FamilyWild;
+ } else if (!dnet && (*displayname == '[') && (*(ptr - 1) == ']')) {
+ /* Allow RFC2732-like [<IPv6NumericAddress>]:display syntax */
+ family = FamilyInternet6;
+--
+1.7.3.3
+
+