mirror of
https://github.com/restic/restic.git
synced 2024-12-22 07:43:03 +00:00
Add comment
This commit is contained in:
parent
81dddfccc1
commit
1d8e76a245
1 changed files with 1 additions and 0 deletions
1
tree.go
1
tree.go
|
@ -161,6 +161,7 @@ func (node *Node) fill_extra(path string, fi os.FileInfo) (err error) {
|
|||
node.UID = stat.Uid
|
||||
node.GID = stat.Gid
|
||||
|
||||
// TODO: cache uid lookup
|
||||
if u, nil := user.LookupId(strconv.Itoa(int(stat.Uid))); err == nil {
|
||||
node.User = u.Username
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue