Skip to content

Commit

Permalink
fix: use slash separated paths for RPM files
Browse files Browse the repository at this point in the history
  • Loading branch information
lebauce committed Nov 10, 2023
1 parent 0c76645 commit 5cd93db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/fanal/analyzer/pkg/rpm/rpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ func (a rpmPkgAnalyzer) parsePkgInfo(rc io.Reader) (types.Packages, []string, er
if err != nil {
return nil, nil, xerrors.Errorf("unable to get installed files: %w", err)
}

for i, file := range files {
files[i] = filepath.ToSlash(file)
}
}

// RPM DB uses MD5 digest
Expand Down

0 comments on commit 5cd93db

Please sign in to comment.