diff options
Diffstat (limited to 'src/pkg/os/stat_nacl.go')
-rw-r--r-- | src/pkg/os/stat_nacl.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pkg/os/stat_nacl.go b/src/pkg/os/stat_nacl.go index be693e814..a44d0b0b6 100644 --- a/src/pkg/os/stat_nacl.go +++ b/src/pkg/os/stat_nacl.go @@ -15,15 +15,15 @@ func fileInfoFromStat(name string, fi *FileInfo, lstat, stat *syscall.Stat_t) *F fi.Ino = uint64(stat.Ino) fi.Nlink = uint64(stat.Nlink) fi.Mode = stat.Mode - fi.Uid = stat.Uid - fi.Gid = stat.Gid + fi.Uid = int(stat.Uid) + fi.Gid = int(stat.Gid) fi.Rdev = uint64(stat.Rdev) - fi.Size = uint64(stat.Size) - fi.Blksize = uint64(stat.Blksize) - fi.Blocks = uint64(stat.Blocks) - fi.Atime_ns = uint64(stat.Atime) * 1e9 - fi.Mtime_ns = uint64(stat.Mtime) * 1e9 - fi.Ctime_ns = uint64(stat.Ctime) * 1e9 + fi.Size = int64(stat.Size) + fi.Blksize = int64(stat.Blksize) + fi.Blocks = int64(stat.Blocks) + fi.Atime_ns = int64(stat.Atime) * 1e9 + fi.Mtime_ns = int64(stat.Mtime) * 1e9 + fi.Ctime_ns = int64(stat.Ctime) * 1e9 for i := len(name) - 1; i >= 0; i-- { if name[i] == '/' { name = name[i+1:] |