Allow files creation in /tmp on OpenBSD

- src/protector/protector_openbsd.go: add tmppath for pledge
    permissions
  - fix junegunn/fzf#3511

Signed-off-by: Laurent Cheylus <foxy@free.fr>
pull/3512/head
Laurent Cheylus 7 months ago
parent 7c674ad7fa
commit 3f44da7069
No known key found for this signature in database

@ -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")
}

Loading…
Cancel
Save