aboutsummaryrefslogtreecommitdiff
path: root/src/os/root_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/root_unix.go')
-rw-r--r--src/os/root_unix.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/root_unix.go b/src/os/root_unix.go
index a5ca10b0cd..dc22651423 100644
--- a/src/os/root_unix.go
+++ b/src/os/root_unix.go
@@ -209,6 +209,10 @@ func removeat(fd int, name string) error {
return e
}
+func renameat(oldfd int, oldname string, newfd int, newname string) error {
+ return unix.Renameat(oldfd, oldname, newfd, newname)
+}
+
// checkSymlink resolves the symlink name in parent,
// and returns errSymlink with the link contents.
//