Skip to content

Commit

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

[release-4.14] OCPBUGS-25980: Rebase with upstream: Fix snyk code issue: Path Traversal
  • Loading branch information
openshift-merge-bot[bot] committed Jan 3, 2024
2 parents 90e87d7 + 2bee51b commit 8ecfd7f
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 8ecfd7f

Please sign in to comment.