Skip to content

Commit

Permalink
Merge pull request #18849 from xtexChooser/xtex-fix-18848
Browse files Browse the repository at this point in the history
fix(specgen): index out of range when unmask=[]
  • Loading branch information
openshift-merge-robot authored Jun 12, 2023
2 parents 6856c77 + d734fcb commit 32d96f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/specgen/generate/oci_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func getCgroupPermissions(unmask []string) string {
return ro
}

if unmask != nil && unmask[0] == "ALL" {
if len(unmask) != 0 && unmask[0] == "ALL" {
return rw
}

Expand Down

0 comments on commit 32d96f4

Please sign in to comment.