[Bug 276194] category/port x11vnc fails with -auth argument

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 08 Jan 2024 05:28:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276194

            Bug ID: 276194
           Summary: category/port x11vnc fails with -auth argument
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: gdinolt@pacbell.net
 Attachment #247524 text/plain
         mime type:

Created attachment 247524
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247524&action=edit
Patch file to fix -auth parsing in src/ssltools.h

x11vnc fails with -auth argument as follows in x11vnc.log:

06/01/2024 23:12:29 passing arg to libvncserver: -rfbauth
06/01/2024 23:12:29 passing arg to libvncserver: /usr/home/dinolt/.vnc/passwd
06/01/2024 23:12:29 x11vnc version: 0.9.16 lastmod: 2019-01-05  pid: 1525
[: -a: unexpected operator
[: -a: unexpected operator
06/01/2024 23:12:30 -auth guess: failed for display=':0'

This fails with both FreeBSD13.2 p8 (and previous) and FreeBSD14 Stable on
AMD64.  I have not tried on other hardware or versions of the OS. 

The failure seems to be in the file src/ssltools.h in the parsing of the -auth
arg where there is an extra space in the regular expression passed to the sed
at line 1060.  I have attached a patch file to be included in the files
directory that seems to fix the problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.