archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xorg-xinit / trunk / use_uname_-n_instead_of_hostname.diff
bloba3aa1b8bda94c589c30c3448271bd4aca7f3498a
1 diff --git a/startx.cpp b/startx.cpp
2 index a390f0341a126c87de91634139de1f0329d0c06d..33b9eb7bfc35117df97ef6c54f2620bbcd90b9a6 100644
3 --- a/startx.cpp
4 +++ b/startx.cpp
5 @@ -251,18 +251,7 @@ if [ x"$enable_xauth" = x1 ] ; then
6 removelist=
8 XCOMM set up default Xauth info for this machine
9 - case `uname` in
10 - Linux*)
11 - if [ -z "`hostname --version 2>&1 | grep GNU`" ]; then
12 - hostname=`hostname -f`
13 - else
14 - hostname=`hostname`
15 - fi
16 - ;;
17 - *)
18 - hostname=`hostname`
19 - ;;
20 - esac
21 + hostname=`uname -n`
23 authdisplay=${display:-:0}
24 #if defined(HAS_COOKIE_MAKER) && defined(MK_COOKIE)