]> Cypherpunks repositories - gostls13.git/commitdiff
internal/syscall/unix: correct fchmodat on openbsd
authorJoel Sing <joel@sing.id.au>
Fri, 14 Feb 2025 17:45:04 +0000 (04:45 +1100)
committerGopher Robot <gobot@golang.org>
Fri, 14 Feb 2025 22:00:06 +0000 (14:00 -0800)
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 <iant@google.com>
TryBot-Bypass: Damien Neil <dneil@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Commit-Queue: Damien Neil <dneil@google.com>
Auto-Submit: Damien Neil <dneil@google.com>

src/internal/syscall/unix/at_openbsd.go

index 771cb063e0cf4001cce4b198f8f8340a5948b9dc..22c959b0c7e1ed4cc1f9ffbb2c81c18a0533d630 100644 (file)
@@ -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),