summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremy@yuffie.local>2007-12-20 16:50:39 -0800
committerJeremy Huddleston <jeremy@yuffie.local>2007-12-20 16:50:39 -0800
commitd1c968926fa2fe36b612d4ebc948d73e6e0f6c01 (patch)
treef47be36bd8a47f815de9763a980f74108e5218f9 /startx.cpp
parent73a2dd64576328de712ee792d569a88550e4ddb4 (diff)
OS-X: Made defaults test more robust
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/startx.cpp b/startx.cpp
index e1e4271..4469ee4 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -72,13 +72,13 @@ clientargs=""
serverargs=""
#ifdef __APPLE__
-if [ `defaults read org.x.X11 no_auth` = 0 ] ; then
+if [ x`defaults read org.x.X11 no_auth` = x0 ] ; then
enable_xauth=1
else
enable_xauth=0
fi
-if [ `defaults read org.x.X11 nolisten_tcpip` = 1 ] ; then
+if [ x`defaults read org.x.X11 nolisten_tcp` = x1 ] ; then
defaultserverargs="-nolisten tcp"
fi
#else