mirror of
https://github.com/junegunn/fzf.git
synced 2026-04-27 01:40:34 +08:00
fc60406684
Without this fzf --listen=/tmp/foo.sock fails on OpenBSD.
11 lines
238 B
Go
11 lines
238 B
Go
//go:build openbsd
|
|
|
|
package protector
|
|
|
|
import "golang.org/x/sys/unix"
|
|
|
|
// Protect calls OS specific protections like pledge on OpenBSD
|
|
func Protect() {
|
|
unix.PledgePromises("stdio cpath dpath wpath rpath inet fattr unix tty proc exec")
|
|
}
|