linux-user: unix sockets - fix running dbus
authorRiku Voipio <riku.voipio@nokia.com>
Wed, 28 Jan 2009 16:28:27 +0000 (18:28 +0200)
committerRiku Voipio <riku.voipio@nokia.com>
Wed, 28 Jan 2009 16:28:27 +0000 (18:28 +0200)
commit7479ae68f8e5bea85885faca651b8d9096f106c3
treefc83f45c6909a9aad5b2b94939d73d2a7d5014c0
parent7f0ceaa78b572f3fab0627c3a084ce1173909e85
linux-user: unix sockets - fix running dbus

dbus sends too short (according to man 7 unix) addrlen for it's
unix socket. I've been told that happens with other applications
as well. Linux kernel doesn't appear to mind, so I guess
we whould be tolerant as well. Expand sockaddr with +1 to fit
the \0 of the pathname passed.

(scratchbox1 qemu had a very different workaround for the same issue).
linux-user/syscall.c