Merge pull request #1087 from xiaobo55x:fstat_Nlink

PiperOrigin-RevId: 277324979
This commit is contained in:
gVisor bot
2019-10-29 11:27:57 -07:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -601,7 +601,7 @@ func (l *localFile) GetAttr(_ p9.AttrMask) (p9.QID, p9.AttrMask, p9.Attr, error)
Mode: p9.FileMode(stat.Mode),
UID: p9.UID(stat.Uid),
GID: p9.GID(stat.Gid),
NLink: stat.Nlink,
NLink: uint64(stat.Nlink),
RDev: stat.Rdev,
Size: uint64(stat.Size),
BlockSize: uint64(stat.Blksize),