mirror of
https://github.com/junegunn/fzf.git
synced 2026-03-07 23:52:32 +08:00
"tmppath" pledge is no longer supported.
See commit c883e836f4
Signed-off-by: Laurent Cheylus <foxy@free.fr>
11 lines
227 B
Go
11 lines
227 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 tty proc exec inet")
|
|
}
|