summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-10-29 11:27:57 -0700
committergVisor bot <gvisor-bot@google.com>2019-10-29 11:27:57 -0700
commit8b04e2dd8bb1afddf88c7f68949364b66afb8df5 (patch)
treebb949157f958d873394f2d5d84a0bbdf2f0ed9d7 /pkg
parent41e2df1bdee527eccdc4622ef2013201afc8e2cc (diff)
parentdec831b4939a6332cac5d186a604ff2cbbcaf7af (diff)
Merge pull request #1087 from xiaobo55x:fstat_Nlink
PiperOrigin-RevId: 277324979
Diffstat (limited to 'pkg')
-rw-r--r--pkg/p9/p9.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/p9/p9.go b/pkg/p9/p9.go
index 25530adca..6039f5a42 100644
--- a/pkg/p9/p9.go
+++ b/pkg/p9/p9.go
@@ -814,7 +814,7 @@ func StatToAttr(s *syscall.Stat_t, req AttrMask) (Attr, AttrMask) {
attr.Mode = FileMode(s.Mode)
}
if req.NLink {
- attr.NLink = s.Nlink
+ attr.NLink = uint64(s.Nlink)
}
if req.UID {
attr.UID = UID(s.Uid)