summaryrefslogtreecommitdiff
path: root/regress/usr.bin
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2021-07-24 01:54:24 +0000
committerDamien Miller <djm@cvs.openbsd.org>2021-07-24 01:54:24 +0000
commit38cb899ae115089509748f5ee03d7ab41a9112ed (patch)
treed5d146e5bd38f4393de41089e896d7e5c992ad7c /regress/usr.bin
parent8c6a00aaf3c9da861799a82847ea3c39af3a7960 (diff)
test for first-match-wins in authorized_keys environment=
options
Diffstat (limited to 'regress/usr.bin')
-rw-r--r--regress/usr.bin/ssh/unittests/authopt/tests.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/usr.bin/ssh/unittests/authopt/tests.c b/regress/usr.bin/ssh/unittests/authopt/tests.c
index 0e8aacb9169..4fedf0a3e8a 100644
--- a/regress/usr.bin/ssh/unittests/authopt/tests.c
+++ b/regress/usr.bin/ssh/unittests/authopt/tests.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tests.c,v 1.1 2018/03/03 03:16:17 djm Exp $ */
+/* $OpenBSD: tests.c,v 1.2 2021/07/24 01:54:23 djm Exp $ */
/*
* Regress test for keys options functions.
@@ -268,6 +268,8 @@ test_authkeys_parse(void)
} while (0)
ARRAY_TEST("environment", "environment=\"foo=1\",environment=\"bar=2\"",
env, nenv, "foo=1,bar=2");
+ ARRAY_TEST("environment", "environment=\"foo=1\",environment=\"foo=2\"",
+ env, nenv, "foo=1");
ARRAY_TEST("permitopen", "permitopen=\"foo:123\",permitopen=\"bar:*\"",
permitopen, npermitopen, "foo:123,bar:*");
#undef ARRAY_TEST