summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/libc/libc_netbsd_amd64.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-12-12 15:47:51 +0100
committerLibravatar GitHub <noreply@github.com>2021-12-12 15:47:51 +0100
commit67ac8db190eb82a7758746fb021fa3014f4241b7 (patch)
tree4a4124ad8f0ee9ec8858b109dd0bcc2e567fc144 /vendor/modernc.org/libc/libc_netbsd_amd64.go
parentupstep dependencies (#339) (diff)
downloadgotosocial-67ac8db190eb82a7758746fb021fa3014f4241b7.tar.xz
Upstep Go dependencies (#340)
* Upstep Go dependencies * tiny linter fix * Tidy
Diffstat (limited to 'vendor/modernc.org/libc/libc_netbsd_amd64.go')
-rw-r--r--vendor/modernc.org/libc/libc_netbsd_amd64.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/vendor/modernc.org/libc/libc_netbsd_amd64.go b/vendor/modernc.org/libc/libc_netbsd_amd64.go
index bfc2bb655..9c963d005 100644
--- a/vendor/modernc.org/libc/libc_netbsd_amd64.go
+++ b/vendor/modernc.org/libc/libc_netbsd_amd64.go
@@ -337,13 +337,12 @@ func Xutime(t *TLS, filename, times uintptr) int32 {
// int chown(const char *pathname, uid_t owner, gid_t group);
func Xchown(t *TLS, pathname uintptr, owner types.Uid_t, group types.Gid_t) int32 {
- panic(todo(""))
- // if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 {
- // t.setErrno(err)
- // return -1
- // }
+ if _, _, err := unix.Syscall(unix.SYS_CHOWN, pathname, uintptr(owner), uintptr(group)); err != 0 {
+ t.setErrno(err)
+ return -1
+ }
- // return 0
+ return 0
}
// int link(const char *oldpath, const char *newpath);