Running tlsproxy_add() twice with the same hostname failed with `make
distcheck`.
"$srcdir/../src/tlsproxy-setup" >/dev/null 2>&1
}
tlsproxy_add() {
- "$srcdir/../src/tlsproxy-add" "$1" "$srcdir/$2" >/dev/null 2>&1
+ # `make distcheck` marks the source PEM-file as read-only which is copied
+ # over when using `cp`. This causes a check failure when tlsproxy_add() is
+ # called again with the same hostname. Instead use redirection which
+ # doesn't use `cp`.
+ "$srcdir/../src/tlsproxy-add" "$1" < "$srcdir/$2" >/dev/null 2>&1
}
tlsproxy() {
../src/tlsproxy -d2 "$@" >tlsproxy-log 2>&1 &