From b6f98bdb026812c3cf21796e2fad4fd61770d3e5 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 31 Mar 2018 13:22:36 +0200 Subject: [PATCH] node: Fill minimal info --- internal/restic/node.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/restic/node.go b/internal/restic/node.go index 33e5285a8..8cc94be94 100644 --- a/internal/restic/node.go +++ b/internal/restic/node.go @@ -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 }