Exclude unix: from vnc call to unix_listen() (Ryan Harper)
commit4a55bfdfcf051f45619d422285be4b8c30ff20ae
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 2 Dec 2008 20:02:14 +0000 (2 20:02 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 2 Dec 2008 20:02:14 +0000 (2 20:02 +0000)
tree3e99e2686d813116934d035aea3d91a8604cf3e8
parentd4b55be509f8a12cf8f456847596df88f49c2bf8
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 <ryanh@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5856 c046a42c-6fe2-441c-8c8c-71466251a162
vnc.c