From ea62ca742907caa47ae54239d6eb08bb1d70d783 Mon Sep 17 00:00:00 2001 From: jkuzeja Date: Fri, 30 Aug 2013 16:26:52 -0400 Subject: Removed the extra space before "-auth" in the regexp for FindDisplay, which was causing the sed command to fail. That failure then made xa null and that made line 305 \" if [ -f $xa -a -r $xa ]; then \" choke, giving this message: /tmp/fd.4zomKO: 305: [: -a: unexpected operator --- x11vnc/ssltools.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11vnc/ssltools.h b/x11vnc/ssltools.h index b4ad7d0..2249112 100644 --- a/x11vnc/ssltools.h +++ b/x11vnc/ssltools.h @@ -1057,7 +1057,7 @@ char find_display[] = "#\n" "if [ \"X$FD_XDM\" != \"X\" ]; then\n" " list=\"\"\n" -" for pair in `echo \"$psout\" | grep '/X.* :[0-9][0-9]* .*-auth' | egrep -v 'startx|xinit' | sed -e 's,^.*/X.* \\(:[0-9][0-9]*\\) .* -auth \\([^ ][^ ]*\\).*$,\\1\\,\\2,' | sort -u`\n" +" for pair in `echo \"$psout\" | grep '/X.* :[0-9][0-9]* .*-auth' | egrep -v 'startx|xinit' | sed -e 's,^.*/X.* \\(:[0-9][0-9]*\\) .*-auth \\([^ ][^ ]*\\).*$,\\1\\,\\2,' | sort -u`\n" " do\n" " da=`echo \"$pair\" | awk -F, '{print $1}'`\n" " xa=`echo \"$pair\" | awk -F, '{print $2}'`\n" -- cgit v1.1