Re: [Qemu-devel] [PATCH v2] sockets: improve error reporting if UNIX socket path is too long

2017-05-24 Thread Eric Blake
On 05/24/2017 11:18 AM, Daniel P. Berrange wrote: > The 'struct sockaddr_un' only allows 108 bytes for the socket > path. > > If the user supplies a path, QEMU uses snprintf() to silently > truncate it when too long. This is undesirable because the user > will then be unable to connect to the path

[Qemu-devel] [PATCH v2] sockets: improve error reporting if UNIX socket path is too long

2017-05-24 Thread Daniel P. Berrange
The 'struct sockaddr_un' only allows 108 bytes for the socket path. If the user supplies a path, QEMU uses snprintf() to silently truncate it when too long. This is undesirable because the user will then be unable to connect to the path they asked for. If the user doesn't supply a path, QEMU buil