node: Fill minimal info

This commit is contained in:
Alexander Neumann 2018-03-31 13:22:36 +02:00
parent c4b2486b7c
commit b6f98bdb02
1 changed files with 4 additions and 0 deletions

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
}