From 3d82396b95bff8ed6028e36cf3aed1f1189ba909 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Thu, 11 Mar 2010 16:09:35 -0800 Subject: darwin: Handle home directories that contain a single-quote (') Signed-off-by: Jeremy Huddleston --- startx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'startx.cpp') diff --git a/startx.cpp b/startx.cpp index 810fd23..48d40aa 100644 --- a/startx.cpp +++ b/startx.cpp @@ -278,7 +278,7 @@ if [ x"$enable_xauth" = x1 ] ; then add :$dummy . $mcookie EOF #if defined(__APPLE__) || defined(__CYGWIN__) - serverargs=${serverargs}" -auth '"${xserverauthfile}"'" + serverargs=${serverargs}" -auth '"${xserverauthfile//\'/\'\\\'\'}"'" #else serverargs=${serverargs}" -auth "${xserverauthfile} #endif -- cgit v1.2.3