[chore] update otel -> v1.20.0 (#2358)

This commit is contained in:
tobi
2023-11-13 11:08:02 +01:00
committed by GitHub
parent deaea100c3
commit 7753f42132
422 changed files with 1814 additions and 6590 deletions

View File

@@ -128,7 +128,8 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) {
if n > 0 {
sl += _Socklen(n) + 1
}
if sa.raw.Path[0] == '@' {
if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) {
// Check sl > 3 so we don't change unnamed socket behavior.
sa.raw.Path[0] = 0
// Don't count trailing NUL for abstract address.
sl--