aboutsummaryrefslogtreecommitdiff
path: root/src/os/root_openat.go
diff options
context:
space:
mode:
authorJes Cok <xigua67damn@gmail.com>2025-02-14 13:50:24 +0000
committerGopher Robot <gobot@golang.org>2025-02-14 20:21:32 -0800
commit63ae4167208259fea30769e7baf8ef5b4c73ef4e (patch)
treea28cf52b4de1fad54f2b87bf73aaa14554d22152 /src/os/root_openat.go
parentd7c242a19ae0fd9adae1c6d6222df2f1d93646da (diff)
downloadgo-63ae4167208259fea30769e7baf8ef5b4c73ef4e.tar.xz
os: explicitly return nil for rootChown in root_openat.go
It is consistent with the same function in root_noopenat.go. Change-Id: I6ddbf4dfcc725cb2023bc6bed961cc525b9c43d2 GitHub-Last-Rev: 0802150a6a8e5d4bd395b702ecc518df1e8dd4c0 GitHub-Pull-Request: golang/go#71743 Reviewed-on: https://go-review.googlesource.com/c/go/+/649417 Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Damien Neil <dneil@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/os/root_openat.go')
-rw-r--r--src/os/root_openat.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/root_openat.go b/src/os/root_openat.go
index 65d3eacf4d..cac0b1df0f 100644
--- a/src/os/root_openat.go
+++ b/src/os/root_openat.go
@@ -84,7 +84,7 @@ func rootChown(r *Root, name string, uid, gid int) error {
if err != nil {
return &PathError{Op: "chownat", Path: name, Err: err}
}
- return err
+ return nil
}
func rootMkdir(r *Root, name string, perm FileMode) error {