On Thu May 18 16:46:23 2023 +0000, Zebediah Figura wrote:
@zfigura Can you elaborate on this? I don't see a clean way of doing
this in ntdll without modifying `struct afd_bind_params`, `struct afd_connect_params`, etc. to add a field for the Unix path, since none of the other `sock_ioctl` cases add on varargs. afd_bind_params et al. should already take a variable sized sockaddr, and the struct definitions in include/wine/afd.h mention that specifically. Am I missing something?
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.