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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os/root_unix.go b/src/os/root_unix.go
index c891e81b79..885a8353eb 100644
--- a/src/os/root_unix.go
+++ b/src/os/root_unix.go
@@ -104,6 +104,7 @@ func rootOpenFileNolog(root *Root, name string, flag int, perm FileMode) (*File,
return nil, &PathError{Op: "openat", Path: name, Err: err}
}
f := newFile(fd, joinPath(root.Name(), name), kindOpenFile, unix.HasNonblockFlag(flag))
+ f.inRoot = true
return f, nil
}