Re: [PATCH v25 0/7] MR2786: Add support for AF_UNIX sockets
June 17, 2023
11:03 p.m.
On Fri Jun 16 17:31:20 2023 +0000, Zebediah Figura wrote:
This can't work, though; we need to convert it to Unix first. (Or print a FIXME and fail for DGRAM sockets.) Linux man-pages call out returning sizeof(sockaddr_un) as okay on Linux, but is it portable? We may want to return strlen()+1 just to be safe. Converting the path cannot realistically be done due to size differences for the same path:
$ echo -n 'C:\tmp\foo.sock' | wc -c
15
$ winepath 'C:\tmp\foo.sock' | tr -d '\n' | wc -c
47
For the same reason as needing to change directories to actually bind and connect, path translation in these functions and their server equivalents is not feasible. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2786#note_36046
1012
Age (days ago)
1012
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ally Sommers (ļ¼ dropbear)