From: Joel Sing Date: Fri, 14 Feb 2025 17:45:04 +0000 (+1100) Subject: internal/syscall/unix: correct fchmodat on openbsd X-Git-Tag: go1.25rc1~1020 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bad791343f50a165e27f9f9bda6ba42af05b1869;p=gostls13.git internal/syscall/unix: correct fchmodat on openbsd This is incorrectly calling the fchownat trampoline - call fchmodat as intended. Change-Id: I7b1e758d456006303ca95b70df9e6b52d3020158 Reviewed-on: https://go-review.googlesource.com/c/go/+/649655 Reviewed-by: Ian Lance Taylor TryBot-Bypass: Damien Neil Reviewed-by: Damien Neil Commit-Queue: Damien Neil Auto-Submit: Damien Neil --- diff --git a/src/internal/syscall/unix/at_openbsd.go b/src/internal/syscall/unix/at_openbsd.go index 771cb063e0..22c959b0c7 100644 --- a/src/internal/syscall/unix/at_openbsd.go +++ b/src/internal/syscall/unix/at_openbsd.go @@ -81,7 +81,7 @@ func Fchownat(dirfd int, path string, uid, gid int, flags int) error { if err != nil { return err } - _, _, errno := syscall_syscall6(abi.FuncPCABI0(libc_fchmodat_trampoline), + _, _, errno := syscall_syscall6(abi.FuncPCABI0(libc_fchownat_trampoline), uintptr(dirfd), uintptr(unsafe.Pointer(p)), uintptr(uid),