1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-10 14:15:36 +00:00

node: Fill minimal info

This commit is contained in:
Alexander Neumann 2018-03-31 13:22:36 +02:00
parent c4b2486b7c
commit b6f98bdb02

View file

@ -635,6 +635,10 @@ func lookupGroup(gid string) (string, error) {
func (node *Node) fillExtra(path string, fi os.FileInfo) error {
stat, ok := toStatT(fi.Sys())
if !ok {
// fill minimal info with current values for uid, gid
node.UID = uint32(os.Getuid())
node.GID = uint32(os.Getgid())
node.ChangeTime = node.ModTime
return nil
}