slackware-current/source/x/x11/patch/xinit/xinit.create.xserverauthfile.diff
Patrick J Volkerding be920c06c2 Thu Oct 17 23:18:46 UTC 2024
a/kernel-firmware-20241017_8dbcf94-noarch-1.txz:  Upgraded.
a/kernel-generic-6.11.4-x86_64-1.txz:  Upgraded.
ap/usbmuxd-20240916_0b1b233-x86_64-1.txz:  Upgraded.
  Fix USB tethering to an iPhone. Thanks to skubik and marav.
d/autoconf-archive-2024.10.16-noarch-1.txz:  Upgraded.
d/kernel-headers-6.11.4-x86-1.txz:  Upgraded.
d/rust-1.82.0-x86_64-1.txz:  Upgraded.
k/kernel-source-6.11.4-noarch-1.txz:  Upgraded.
l/glib2-2.82.2-x86_64-1.txz:  Upgraded.
l/libunistring-1.3-x86_64-1.txz:  Upgraded.
l/python-trove-classifiers-2024.10.16-x86_64-1.txz:  Upgraded.
n/libtirpc-1.3.6-x86_64-1.txz:  Upgraded.
x/xinit-1.4.2-x86_64-2.txz:  Rebuilt.
  startx: Ensure that xserverauthfile is created and given correct permissions
  to avoid a startup error message. Thanks to Didier Spaier.
xap/mozilla-thunderbird-128.3.2esr-x86_64-1.txz:  Upgraded.
  This is a bugfix release.
  For more information, see:
    https://www.mozilla.org/en-US/thunderbird/128.3.2esr/releasenotes/
isolinux/initrd.img:  Rebuilt.
kernels/*:  Upgraded.
usb-and-pxe-installers/usbboot.img:  Rebuilt.
2024-10-18 02:31:04 +02:00

13 lines
503 B
Diff

--- ./startx.cpp.orig 2022-12-03 16:18:43.000000000 -0600
+++ ./startx.cpp 2024-10-17 14:04:54.997581501 -0500
@@ -273,6 +273,10 @@
XCOMM create a file with auth information for the server. ':0' is a dummy.
xserverauthfile=$HOME/.serverauth.$$
+ if [ ! -e $xserverauthfile ]; then
+ touch $xserverauthfile
+ chmod 600 $xserverauthfile
+ fi
trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM
xauth -q -f "$xserverauthfile" << EOF
add :$dummy . $mcookie