summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Cheylus <foxy@free.fr>2023-10-16 23:46:43 +0000
committerGitHub <noreply@github.com>2023-10-17 08:46:43 +0900
commitd51b71ee8039df8f51bd348b43c68ee462d4a496 (patch)
tree9df963bc0da2da824070d94c2fa4cd211ff7aee2
parent3666448ca649093f6f6b534b67e5a8b865d11a00 (diff)
downloadfzf-d51b71ee8039df8f51bd348b43c68ee462d4a496.tar.gz
Fix crash on OpenBSD with --listen (#3483)
- src/protector/protector_openbsd.go: add inet permissions for pledge - fix #3481 Signed-off-by: Laurent Cheylus <foxy@free.fr>
-rw-r--r--src/protector/protector_openbsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protector/protector_openbsd.go b/src/protector/protector_openbsd.go
index 34784a6c..4a72aebe 100644
--- a/src/protector/protector_openbsd.go
+++ b/src/protector/protector_openbsd.go
@@ -6,5 +6,5 @@ import "golang.org/x/sys/unix"
// Protect calls OS specific protections like pledge on OpenBSD
func Protect() {
- unix.PledgePromises("stdio rpath tty proc exec")
+ unix.PledgePromises("stdio rpath tty proc exec inet")
}