qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5856] Exclude unix: from vnc call to unix_listen() (Ryan H


From: Anthony Liguori
Subject: [Qemu-devel] [5856] Exclude unix: from vnc call to unix_listen() (Ryan Harper)
Date: Tue, 02 Dec 2008 20:02:15 +0000

Revision: 5856
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5856
Author:   aliguori
Date:     2008-12-02 20:02:14 +0000 (Tue, 02 Dec 2008)

Log Message:
-----------
Exclude unix: from vnc call to unix_listen() (Ryan Harper)

When using an existing unix socket like:

 -vnc unix:/tmp/file1Y2nY2

qemu fails to bind a unix socket because the vnc call to unix_listen includes
the unix: prefix and stores that in the unix.sun_path.  The fix is to not pass
in unix: for the filename (same way qemu-char.c does it).

Signed-off-by: Ryan Harper <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

Modified Paths:
--------------
    trunk/vnc.c

Modified: trunk/vnc.c
===================================================================
--- trunk/vnc.c 2008-12-02 19:40:26 UTC (rev 5855)
+++ trunk/vnc.c 2008-12-02 20:02:14 UTC (rev 5856)
@@ -2544,7 +2544,7 @@
         dpy = qemu_malloc(256);
         if (strncmp(display, "unix:", 5) == 0) {
             strcpy(dpy, "unix:");
-            vs->lsock = unix_listen(display, dpy+5, 256-5);
+            vs->lsock = unix_listen(display+5, dpy+5, 256-5);
         } else {
             vs->lsock = inet_listen(display, dpy, 256, SOCK_STREAM, 5900);
         }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]