upstream: test for first-match-wins in authorized_keys environment=

options

OpenBSD-Regress-ID: 1517c90276fe84b5dc5821c59f88877fcc34c0e8
This commit is contained in:
djm@openbsd.org 2021-07-24 01:54:23 +00:00 committed by Damien Miller
parent 2b76f1dd19
commit 9d38074b54
1 changed files with 3 additions and 1 deletions

View File

@ -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.
@ -270,6 +270,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