summaryrefslogtreecommitdiff
path: root/src/protector/protector_openbsd.go
diff options
context:
space:
mode:
authorbsdmp <bsdmp@users.noreply.github.com>2024-06-19 05:26:08 +0300
committerGitHub <noreply@github.com>2024-06-19 11:26:08 +0900
commit295b89631b5baf1ca88d1b143805c73c7bff6a89 (patch)
tree52fc970e9c225b7d124711ef5cfca1dcffdf4ca1 /src/protector/protector_openbsd.go
parent6179faf778bb63dd9930d5e2716ed0b4d11d5240 (diff)
downloadfzf-295b89631b5baf1ca88d1b143805c73c7bff6a89.tar.gz
Add wpath and dpath pledges on OpenBSD to make --tmux work (#3877)
Diffstat (limited to 'src/protector/protector_openbsd.go')
-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 6d92c59c..7030b91e 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 inet tmppath")
+ unix.PledgePromises("stdio dpath wpath rpath tty proc exec inet tmppath")
}