junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
61.81k stars 2.35k forks source link

Add wpath and dpath pledges on OpenBSD to make --tmux work #3877

Closed bsdmp closed 2 weeks ago

bsdmp commented 2 weeks ago
vm:~$ uname -a
OpenBSD vm.lab.local 7.5 GENERIC.MP#139 amd64
vm:~$ fzf --version
0.53.0
vm:~$ fzf --tmux 70%
fzf[30951]: pledge "dpath", syscall 132
zsh: abort (core dumped)  fzf --tmux 70%

after adding 'dpath' pledge above test case begins to work, but the next one still fails:

vm:/tmp/fzf (master)$ ls | ./fzf --tmux 70%
fzf[17234]: pledge "wpath", syscall 5
zsh: done                 ls -F |
zsh: abort (core dumped)  ./fzf --tmux 70%

Solution - add 'dpath' and 'wpath' pledges, after that both test cases work fine.

junegunn commented 2 weeks ago

Thanks!