2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-24 21:57:41 +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.GID = stat.Gid
// TODO: cache uid lookup
if u, nil := user.LookupId(strconv.Itoa(int(stat.Uid))); err == nil {
node.User = u.Username
}