Skip to content

Commit

Permalink
Fixed a regression bug with recursive VFS refresh.
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette committed Aug 8, 2018
1 parent eb8fe22 commit fd873ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ test:
COMMIT := $(shell git rev-parse HEAD)
DATE := $(shell date -Iseconds)
LDFLAGS := \
-s -w \
-X www.velocidex.com/golang/velociraptor/config.build_time=$(DATE) \
-X www.velocidex.com/golang/velociraptor/config.commit_hash=$(COMMIT)

Expand Down
5 changes: 4 additions & 1 deletion flows/vfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (self *VFSListDirectory) Save(
return errors.WithStack(err)
}
self.state.Current.Response = string(s)
self.state.Current.TotalRows = uint64(len(self.rows))
flow_obj.SetState(self.state)
return nil
}
Expand Down Expand Up @@ -221,7 +222,9 @@ func (self *VFSListDirectory) processRecursiveDirectoryListing(
}
self.state.VfsPath = path.Dir(full_path)
self.state.Current = &actions_proto.VQLResponse{
Query: vql_response.Query,
Query: vql_response.Query,
Columns: vql_response.Columns,
Timestamp: vql_response.Timestamp,
}
}
self.rows = append(self.rows, row)
Expand Down

0 comments on commit fd873ab

Please sign in to comment.