diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2025-09-29 21:45:56 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2025-09-29 21:45:56 +0200 |
| commit | 24762f09de2aa8cada3f3c63afa313e06ebf47c8 (patch) | |
| tree | 260b236dbdaa4b21ab55f2ce54003446630dcea5 /vendor/golang.org/x/sys/unix/syscall_aix.go | |
| parent | 6f4c551a522b94e80ace5657d2b8cdfc267d8ae2 (diff) | |
| download | gofu-24762f09de2aa8cada3f3c63afa313e06ebf47c8.tar.gz | |
replace deprecated dependencies with their successors
Diffstat (limited to 'vendor/golang.org/x/sys/unix/syscall_aix.go')
| -rw-r--r-- | vendor/golang.org/x/sys/unix/syscall_aix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/golang.org/x/sys/unix/syscall_aix.go b/vendor/golang.org/x/sys/unix/syscall_aix.go index e94e6cd..6f15ba1 100644 --- a/vendor/golang.org/x/sys/unix/syscall_aix.go +++ b/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix -// +build aix // Aix system calls. // This file is compiled as ordinary Go code, @@ -107,7 +106,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-- @@ -360,7 +360,7 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int, var status _C_int var r Pid_t err = ERESTART - // AIX wait4 may return with ERESTART errno, while the processus is still + // AIX wait4 may return with ERESTART errno, while the process is still // active. for err == ERESTART { r, err = wait4(Pid_t(pid), &status, options, rusage) |
