On OpenBSD use 'openssl rand 16 -hex' to generate the cookie.
This avoids the quoting hell needed for 'dd /dev/arandom | hexdump' that confuses cpp from gcc 2.95.
This commit is contained in:
parent
1385b56548
commit
a80a36f4ed
@ -120,7 +120,7 @@ AC_PATH_PROGS(MCOOKIE, [mcookie], [$MCOOKIE],
|
|||||||
|
|
||||||
case $host_os in
|
case $host_os in
|
||||||
*openbsd*)
|
*openbsd*)
|
||||||
MCOOKIE='dd if=/dev/arandom bs=16 count=1 2>/dev/null | hexdump -e \\\"%08x\\\"'
|
MCOOKIE='openssl rand -hex 16'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user