completion(zsh): use private mktemp dir for completion FIFO
Before adoption: this commit came in with the history the project adopted, so no landing records it.
FIFO path was predictable (${TMPDIR:-/tmp}/fzf-complete-fifo-$$) and _fzf_feed_fifo ignored rm/mkfifo failures, so on a shared /tmp another user could pre-create the path (symlink or FIFO) and have the victim's redirect follow it. Allocate the FIFO inside a per-invocation mktemp -d directory, check mkfifo status, and clean up the directory instead of the bare path.
authored by Junegunn Choi · committed by Junegunn Choi · parent f126ff2 · Browse files · 2 files+7 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Reported-by: sb24CK (https://github.com/sb24CK)
Diff stats
2 files+7 added−4 removed
- other:+7 added−4 removed