• Joel Sing's avatar
    syscall: handle varied path lengths for unix sockets · d1805791
    Joel Sing authored
    Most BSDs include the trailing NUL character of the socket path in the
    length, however some do not (such as NetBSD 6.99). Handle this by only
    subtracting the family and length bytes from the returned length, then
    scanning the path and removing any terminating NUL bytes.
    
    Fixes #6627.
    
    R=golang-codereviews, mikioh.mikioh
    CC=golang-codereviews
    https://golang.org/cl/46420044
    d1805791
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...