From: Jes Cok Date: Thu, 13 Feb 2025 16:02:20 +0000 (+0000) Subject: os: explicitly return nil for {rootChmod,rootMkdir,rootRemove} in root_openat.go X-Git-Tag: go1.25rc1~1039 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=eab3c1e697189ddded55a5ac14d8b29d35145419;p=gostls13.git os: explicitly return nil for {rootChmod,rootMkdir,rootRemove} in root_openat.go It is consistent with same functions in root_noopenat.go. Change-Id: I81415fd3922101499fcbbdec97e315add0671acb GitHub-Last-Rev: 3444e8546ee1877feb644202ad2b05379b4b7e74 GitHub-Pull-Request: golang/go#71715 Reviewed-on: https://go-review.googlesource.com/c/go/+/649235 Reviewed-by: Ian Lance Taylor Reviewed-by: Damien Neil Auto-Submit: Ian Lance Taylor LUCI-TryBot-Result: Go LUCI --- diff --git a/src/os/root_openat.go b/src/os/root_openat.go index 5038c822f5..d98d2e3675 100644 --- a/src/os/root_openat.go +++ b/src/os/root_openat.go @@ -74,7 +74,7 @@ func rootChmod(r *Root, name string, mode FileMode) error { if err != nil { return &PathError{Op: "chmodat", Path: name, Err: err} } - return err + return nil } func rootMkdir(r *Root, name string, perm FileMode) error { @@ -84,7 +84,7 @@ func rootMkdir(r *Root, name string, perm FileMode) error { if err != nil { return &PathError{Op: "mkdirat", Path: name, Err: err} } - return err + return nil } func rootRemove(r *Root, name string) error { @@ -94,7 +94,7 @@ func rootRemove(r *Root, name string) error { if err != nil { return &PathError{Op: "removeat", Path: name, Err: err} } - return err + return nil } // doInRoot performs an operation on a path in a Root.