]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
wg-quick: freebsd: avoid writing private keys to /tmp
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 14 Mar 2021 04:20:19 +0000 (21:20 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 14 Mar 2021 04:20:19 +0000 (21:20 -0700)
commit9c811e0f2d87b84388d1a3b78865384940b30e10
treec6614078224688b4bcf89f93eb33cee64d50bcdb
parent4e4867dc95126f27bbb487a5d72c58916ca53e93
wg-quick: freebsd: avoid writing private keys to /tmp

FreeBSD's bash doesn't handle <(...) safely, creating a temporary file
instead of using /proc/self/fd/N like on Linux. Work around this by
using a simple pipeline with /dev/stdin.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/freebsd.bash