aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-10-27 11:29:11 +0000
committerStefan Eßer <se@FreeBSD.org>2020-10-27 11:29:11 +0000
commit1f474190fc280d4a4ef0c214e4d7fff0d1237e22 (patch)
tree123ca2f0a46ad9a1203a6b3c7a7a38c2a50854e6 /crypto/openssh
parent7b39bef2cf93f6f0e79cc55a8ee2d339e42a6816 (diff)
Notes
Diffstat (limited to 'crypto/openssh')
-rw-r--r--crypto/openssh/regress/unittests/sshkey/test_sshkey.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/openssh/regress/unittests/sshkey/test_sshkey.c b/crypto/openssh/regress/unittests/sshkey/test_sshkey.c
index 47a03fad4fd2..3415ed68196a 100644
--- a/crypto/openssh/regress/unittests/sshkey/test_sshkey.c
+++ b/crypto/openssh/regress/unittests/sshkey/test_sshkey.c
@@ -9,6 +9,7 @@
#include <sys/types.h>
#include <sys/param.h>
+#include <paths.h>
#include <stdio.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
@@ -79,7 +80,7 @@ build_cert(struct sshbuf *b, const struct sshkey *k, const char *type,
critopts = sshbuf_new();
ASSERT_PTR_NE(critopts, NULL);
- put_opt(critopts, "force-command", "/usr/local/bin/nethack");
+ put_opt(critopts, "force-command", _PATH_LOCALBASE "/bin/nethack");
put_opt(critopts, "source-address", "192.168.0.0/24,127.0.0.1,::1");
exts = sshbuf_new();