From d1c968926fa2fe36b612d4ebc948d73e6e0f6c01 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 20 Dec 2007 16:50:39 -0800 Subject: OS-X: Made defaults test more robust --- startx.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'startx.cpp') 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 -- cgit v1.2.1