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: 0802150a6a
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>
This commit is contained in:
Jes Cok 2025-02-14 13:50:24 +00:00 committed by Gopher Robot
parent d7c242a19a
commit 63ae416720
1 changed files with 1 additions and 1 deletions

View File

@ -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 {