mirror of
https://github.com/junegunn/fzf.git
synced 2025-09-02 05:13:49 -07:00
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>
This commit is contained in:
@@ -6,5 +6,5 @@ import "golang.org/x/sys/unix"
|
|||||||
|
|
||||||
// Protect calls OS specific protections like pledge on OpenBSD
|
// Protect calls OS specific protections like pledge on OpenBSD
|
||||||
func Protect() {
|
func Protect() {
|
||||||
unix.PledgePromises("stdio rpath tty proc exec")
|
unix.PledgePromises("stdio rpath tty proc exec inet")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user