Skip to content

Commit 6063f10

Browse files
committed
revise comment, this function is no longer checking execpromises string itself
1 parent 24ba2a1 commit 6063f10

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

unix/pledge_openbsd.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ func majmin() (major int, minor int, err error) {
129129
// supportsExecpromises checks for availability of the execpromises argument to
130130
// the pledge(2) syscall based on the running OpenBSD version.
131131
func supportsExecpromises(maj, min int) error {
132-
// If OpenBSD <= 6.2 and execpromises is not empty,
133-
// return an error - execpromises is not available before 6.3
132+
// execpromises is not available before 6.3
134133
if maj < 6 || (maj == 6 && min <= 2) {
135134
return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min)
136135
}

0 commit comments

Comments
 (0)