Skip to content

Commit

Permalink
revise comment, this function is no longer checking execpromises stri…
Browse files Browse the repository at this point in the history
…ng itself
  • Loading branch information
jrick committed Feb 14, 2023
1 parent 24ba2a1 commit 6063f10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unix/pledge_openbsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ func majmin() (major int, minor int, err error) {
// supportsExecpromises checks for availability of the execpromises argument to
// the pledge(2) syscall based on the running OpenBSD version.
func supportsExecpromises(maj, min int) error {
// If OpenBSD <= 6.2 and execpromises is not empty,
// return an error - execpromises is not available before 6.3
// execpromises is not available before 6.3
if maj < 6 || (maj == 6 && min <= 2) {
return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min)
}
Expand Down

0 comments on commit 6063f10

Please sign in to comment.