summaryrefslogtreecommitdiff
blob: 82cf10381e68ead0bbc795e54629478078994c22 (plain)
1
2
3
4
5
6
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