summaryrefslogtreecommitdiff
path: root/x11-apps/xinit/files/00-xhost
diff options
context:
space:
mode:
authorStefan Cristian B. <steven.darklight@gmail.com>2014-11-30 02:52:29 +0200
committerStefan Cristian B. <steven.darklight@gmail.com>2014-11-30 02:52:29 +0200
commitd0bb85a9d04b090c8850155750b5775fba6ef32b (patch)
treed8809f7910970831cbd92068c10842081cce90ca /x11-apps/xinit/files/00-xhost
parent1ef8e53a80beb163ec407536582da6d11e4fa737 (diff)
parent320eacba135418ed594f4bf56d1b800450684e32 (diff)
Merge pull request #10 from V3n3RiX/master
fix one 8 year long standing bug in xinit/startx
Diffstat (limited to 'x11-apps/xinit/files/00-xhost')
-rw-r--r--x11-apps/xinit/files/00-xhost7
1 files changed, 7 insertions, 0 deletions
diff --git a/x11-apps/xinit/files/00-xhost b/x11-apps/xinit/files/00-xhost
new file mode 100644
index 00000000..82cf1038
--- /dev/null
+++ b/x11-apps/xinit/files/00-xhost
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Allow all local connections from the current UID
+# This fixes issues with hostname changes (usually by dhcp clients)
+# see bug 287498 for more info
+
+[ -x /usr/bin/xhost ] && [ -x /usr/bin/id ] &&
+ xhost +si:localuser:`id -un` > /dev/null 2>&1