Skip to content

Commit

Permalink
Merge pull request #71 from openshift-cherrypick-robot/cherry-pick-69…
Browse files Browse the repository at this point in the history
…-to-release-4.15

[release-4.15] OCPBUGS-25978: Rebase with upstream: Fix snyk code issue: Path Traversal
  • Loading branch information
openshift-merge-bot[bot] committed Jan 3, 2024
2 parents ecd5957 + fe3ac35 commit 5ca428c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/device/device.go
Expand Up @@ -213,7 +213,7 @@ func scsiHostRescan() error {
return err
}
for _, f := range dirs {
name := scsiPath + f.Name() + "/scan"
name := filepath.Clean(scsiPath + f.Name() + "/scan")
data := []byte("- - -")
if err := os.WriteFile(name, data, 0666); err != nil {
return fmt.Errorf("scsi host rescan failed: %v", err)
Expand Down

0 comments on commit 5ca428c

Please sign in to comment.