mirror of
https://github.com/python/cpython.git
synced 2025-07-18 00:35:17 +00:00
Backed out changeset c0f2b038fc12
This commit is contained in:
parent
c7c333d25d
commit
b10c71daa2
3 changed files with 7 additions and 10 deletions
|
@ -1018,7 +1018,7 @@ makesockaddr(SOCKET_T sockfd, struct sockaddr *addr, size_t addrlen, int proto)
|
|||
#ifdef linux
|
||||
if (a->sun_path[0] == 0) { /* Linux abstract namespace */
|
||||
addrlen -= offsetof(struct sockaddr_un, sun_path);
|
||||
return PyUnicode_DecodeFSDefaultAndSize(a->sun_path, addrlen);
|
||||
return PyBytes_FromStringAndSize(a->sun_path, addrlen);
|
||||
}
|
||||
else
|
||||
#endif /* linux */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue