From 952b6af4454ed55626d78e3845c6b5b640ac831d Mon Sep 17 00:00:00 2001 From: Laurent Cheylus Date: Tue, 21 Nov 2023 07:03:12 +0000 Subject: [PATCH] Allow files creation in /tmp on OpenBSD (#3512) - src/protector/protector_openbsd.go: add tmppath for pledge permissions - fix junegunn/fzf#3511 Signed-off-by: Laurent Cheylus --- src/protector/protector_openbsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protector/protector_openbsd.go b/src/protector/protector_openbsd.go index 4a72aeb..6d92c59 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") + unix.PledgePromises("stdio rpath tty proc exec inet tmppath") }