summaryrefslogtreecommitdiffstats
path: root/x11vnc/ssltools.h
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/ssltools.h')
-rw-r--r--x11vnc/ssltools.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11vnc/ssltools.h b/x11vnc/ssltools.h
index ace6511..5b46339 100644
--- a/x11vnc/ssltools.h
+++ b/x11vnc/ssltools.h
@@ -1639,7 +1639,11 @@ char create_display[] =
" cookie=`(echo $r; date; uptime; ps -ealf 2>&1) | md5sum | awk '{print $1}'`\n"
" fi\n"
" elif [ \"X$have_xauth\" != \"X\" ]; then\n"
-" cookie=`$have_xauth list | awk '{print $NF}' | tail -n 1`\n"
+" if uname | grep SunOS > /dev/null; then\n"
+" cookie=`$have_xauth list | awk '{print $NF}' | tail -1`\n"
+" else\n"
+" cookie=`$have_xauth list | awk '{print $NF}' | tail -n 1`\n"
+" fi\n"
" fi\n"
" if [ \"X$cookie\" = \"X\" ]; then\n"
" # oh well..\n"