summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
Diffstat (limited to 'runsc')
-rw-r--r--runsc/fsgofer/fsgofer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/fsgofer/fsgofer.go b/runsc/fsgofer/fsgofer.go
index 11dd28cef..cd6224de3 100644
--- a/runsc/fsgofer/fsgofer.go
+++ b/runsc/fsgofer/fsgofer.go
@@ -708,7 +708,7 @@ func (l *localFile) Rename(directory p9.File, name string) error {
// TODO: change to renameat(2)
parent := directory.(*localFile)
newPath := path.Join(parent.hostPath, name)
- if err := os.Rename(l.hostPath, newPath); err != nil {
+ if err := syscall.Rename(l.hostPath, newPath); err != nil {
return extractErrno(err)
}