diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-03-11 01:49:36 +0000 |
commit | cf7807d7aea23a99a144afceaba961cfed652b5f (patch) | |
tree | ffd2c781c27e0b7e72152a685a04938a2b7966f0 /x11-apps/xinit/files/xinit-1.4.4-move-serverauthfile-into-tmp.patch | |
parent | 7c5ebaf83da4c538dd11b56fdd5dfdf39dcbc096 (diff) |
Diffstat (limited to 'x11-apps/xinit/files/xinit-1.4.4-move-serverauthfile-into-tmp.patch')
-rw-r--r-- | x11-apps/xinit/files/xinit-1.4.4-move-serverauthfile-into-tmp.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-apps/xinit/files/xinit-1.4.4-move-serverauthfile-into-tmp.patch b/x11-apps/xinit/files/xinit-1.4.4-move-serverauthfile-into-tmp.patch new file mode 100644 index 000000000000..3d2f4e244cc3 --- /dev/null +++ b/x11-apps/xinit/files/xinit-1.4.4-move-serverauthfile-into-tmp.patch @@ -0,0 +1,22 @@ +Move startx auth files in /tmp so they are removed on reboot. +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=357736 +The trap patch didn't seem to work on reboot. +--- + startx.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git ./startx.in ./startx.in +index 8247156..134b704 100644 +--- ./startx.in ++++ ./startx.in +@@ -272,7 +272,7 @@ if [ "$enable_xauth" = 1 ] ; then + dummy=0 + + # create a file with auth information for the server. ':0' is a dummy. +- xserverauthfile="$HOME/.serverauth.$$" ++ xserverauthfile="`mktemp --tmpdir serverauth.XXXXXXXXXX`" + trap "rm -f '$xserverauthfile'" HUP INT QUIT ILL TRAP BUS TERM + xauth -q -f "$xserverauthfile" << EOF + add :$dummy . $mcookie +-- +2.48.1 |