unix: fix IoctlGetPtmget get empty ptsname on NetBSD#192
unix: fix IoctlGetPtmget get empty ptsname on NetBSD#192iyzyi wants to merge 1 commit intogolang:masterfrom
Conversation
On NetBSD, because the size of the Ptmget structure does not match the value of TIOCPTSNAME, IoctlGetPtmget uses an incorrect structure internally, resulting in empty ptsname. See https://github.com/NetBSD/src/blob/trunk/sys/sys/ttycom.h Fixes #66871
|
This PR (HEAD: 683f056) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/579476. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/579476. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/579476. |
|
Message from iyzyi: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/579476. |
On NetBSD, because the size of the Ptmget structure does not match
the value of TIOCPTSNAME, IoctlGetPtmget uses an incorrect structure
internally, resulting in empty ptsname.
See https://github.com/NetBSD/src/blob/trunk/sys/sys/ttycom.h
Fixes golang/go#66871