On Fri May 19 04:17:50 2023 +0000, Ally Sommers wrote:
That's true, but `PATH_MAX` is 4096 on my system, while `sun_path` is a `char[108]`. The path returned by `wine_get_unix_file_name` can very easily exceed that. Thus a vararg is needed to conditionally pass the Unix path to wineserver if we're dealing with an AF_UNIX socket.
I still don't understand the issue. The sockaddr we pass to the server is already variable-sized. It's passed as variable-sized input data, using the "ioctl" request, with the code IOCTL_AFD_BIND. Why is sockaddr_un any different from sockaddr_in?