mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-26 20:16:32 +00:00
"tmppath" pledge is no longer supported. See commit https://github.com/openbsd/src/commit/c883e836f48a8ca9ee3be9de6ebf4b36751f2196 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")
|
|
}
|