1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-22 15:57:07 +00:00

Add comment

This commit is contained in:
Alexander Neumann 2014-12-25 14:13:34 +01:00
parent 81dddfccc1
commit 1d8e76a245

View file

@ -161,6 +161,7 @@ func (node *Node) fill_extra(path string, fi os.FileInfo) (err error) {
node.UID = stat.Uid node.UID = stat.Uid
node.GID = stat.Gid node.GID = stat.Gid
// TODO: cache uid lookup
if u, nil := user.LookupId(strconv.Itoa(int(stat.Uid))); err == nil { if u, nil := user.LookupId(strconv.Itoa(int(stat.Uid))); err == nil {
node.User = u.Username node.User = u.Username
} }