]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
list overrides are not allowed
authorAlan T. DeKok <aland@freeradius.org>
Wed, 11 Oct 2023 19:55:47 +0000 (15:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 11 Oct 2023 19:55:47 +0000 (15:55 -0400)
The edit.c code calls fr_pair_list_afrom_str(), which does NOT
handle list over-rides.

Plus, we are assigning to a list as

&list += "pairs = value"

so having a list override does not make sense.

src/tests/modules/exec/backticks_list.unlang

index 5424dc8498a2aa7107508f1a37839b9a09f311f1..e946b5e7da02a4d433b0362978908336c7e25105 100644 (file)
@@ -10,11 +10,11 @@ if (&Tmp-String-0 != 'hello') {
 }
 
 #
-#  Test default list override
+#  @todo - list over-rides are not allowed!
 #
-&control += `/bin/sh -c "echo reply.Reply-Message := \'hello\'"`
+&control += `/bin/sh -c "echo Reply-Message := \'hello\'"`
 
-if (&reply.Reply-Message != 'hello') {
+if (&control.Reply-Message != 'hello') {
        test_fail
 } else {
        test_pass