]> Cypherpunks repositories - gostls13.git/commit
syscall: allow abstract unix socket to use the full Path len
authorNicolas BRULEZ <n.brulez@gmail.com>
Tue, 26 Sep 2017 08:35:04 +0000 (10:35 +0200)
committerIan Lance Taylor <iant@golang.org>
Tue, 26 Sep 2017 15:08:03 +0000 (15:08 +0000)
commit08a17966712f6edf1600e3eafb7758a153b55ec4
tree7bfa572baf68991ab101c0e8b0fc9f22ec741395
parentc99cfd93a86dc76ff276b13211ef65ab2752bfc7
syscall: allow abstract unix socket to use the full Path len

The previous implementation forced all Unix socket to have a name
strictly shorter than len(sa.raw.Path) to allow a terminating NULL
byte to be added. This requirement does not apply to abstract socket
names under Linux, so for this case we allow the full length.

Fixes #21965

Change-Id: I1d1f58b6b6172d589428c7230cfeae984de78b4b
Reviewed-on: https://go-review.googlesource.com/66190
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/unixsock_test.go
src/syscall/syscall_linux.go