diff options
author | jkuzeja <jkuzeja@fakemail.fake> | 2013-08-30 16:26:52 -0400 |
---|---|---|
committer | jkuzeja <jkuzeja@fakemail.fake> | 2013-08-30 16:26:52 -0400 |
commit | ea62ca742907caa47ae54239d6eb08bb1d70d783 (patch) | |
tree | e3274f54c42af850f05dc2b3bbec05b1a2d92d8d | |
parent | 7b9fc019de681125df48eb0650d3235aed87d8a5 (diff) | |
download | libvncserver-jkuzeja.zip libvncserver-jkuzeja.tar.gz |
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:jkuzeja
/tmp/fd.4zomKO: 305: [: -a: unexpected operator
-rw-r--r-- | x11vnc/ssltools.h | 2 |
1 files changed, 1 insertions, 1 deletions
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" |