summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/host/util.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-18 11:50:44 -0800
committergVisor bot <gvisor-bot@google.com>2019-11-18 11:50:44 -0800
commit235a96cab15e64c69fbbdce03c9bb4eb2c30b0d5 (patch)
treebbfccfb21739a4d3d4504f253a814b1f82751747 /pkg/sentry/fs/host/util.go
parent96019436854b0c59ae380a4920381586d05d9c31 (diff)
parent1d8b7292d72ce93d465e4ded19237fb92c08bc56 (diff)
Merge pull request #1177 from xiaobo55x:fs_host
PiperOrigin-RevId: 281112758
Diffstat (limited to 'pkg/sentry/fs/host/util.go')
-rw-r--r--pkg/sentry/fs/host/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fs/host/util.go b/pkg/sentry/fs/host/util.go
index bad61a9a1..e37e687c6 100644
--- a/pkg/sentry/fs/host/util.go
+++ b/pkg/sentry/fs/host/util.go
@@ -155,7 +155,7 @@ func unstableAttr(mo *superOperations, s *syscall.Stat_t) fs.UnstableAttr {
AccessTime: ktime.FromUnix(s.Atim.Sec, s.Atim.Nsec),
ModificationTime: ktime.FromUnix(s.Mtim.Sec, s.Mtim.Nsec),
StatusChangeTime: ktime.FromUnix(s.Ctim.Sec, s.Ctim.Nsec),
- Links: s.Nlink,
+ Links: uint64(s.Nlink),
}
}