Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kolide/launcher
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 258d1027a5583c1ebdc0989707dc1ffd0248ef72
Choose a base ref
..
head repository: kolide/launcher
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 62d3f5032c83cafeb7c7135886d9a96a90818abb
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 ee/tables/ntfs_ads_zone_id/zone_identifier.go
2 changes: 1 addition & 1 deletion ee/tables/ntfs_ads_zone_id/zone_identifier.go
Original file line number Diff line number Diff line change
@@ -45,7 +45,7 @@ func (t *Table) generate(ctx context.Context, queryContext table.QueryContext) (
for _, path := range paths {
for _, dataQuery := range tablehelpers.GetConstraints(queryContext, "query", tablehelpers.WithDefaults("*")) {
var output bytes.Buffer
if err := tablehelpers.Run(ctx, t.slogger, 30, allowedcmd.Powershell, []string{"-WindowStyle", "Hidden", "-Command", "'", "Get-Content", "-Path", filepath.Clean(path), "-Stream", "Zone.Identifier", "-ErrorAction", "Ignore", "'"}, &output, &output); err != nil {
if err := tablehelpers.Run(ctx, t.slogger, 30, allowedcmd.Powershell, []string{"Get-Content", "-Path", filepath.Clean(path), "-Stream", "Zone.Identifier", "-ErrorAction", "Ignore"}, &output, &output); err != nil {
t.slogger.Log(ctx, slog.LevelInfo, "failure running powershell get-content command", "err", err, "path", path)
continue
}