summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2010-03-11 16:09:35 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2010-03-11 16:09:35 -0800
commit3d82396b95bff8ed6028e36cf3aed1f1189ba909 (patch)
treeb7ec67f0b0c1337a469d78127376e25cb7d71f35
parentad11d954cf296f2bfbe25ad483459c8485197dd1 (diff)
darwin: Handle home directories that contain a single-quote (')
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--startx.cpp2
1 files changed, 1 insertions, 1 deletions
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