From: Alan T. DeKok Date: Wed, 11 Oct 2023 19:55:47 +0000 (-0400) Subject: list overrides are not allowed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ab740fac996140311d045497d6a3214d7e396f0;p=thirdparty%2Ffreeradius-server.git list overrides are not allowed 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. --- diff --git a/src/tests/modules/exec/backticks_list.unlang b/src/tests/modules/exec/backticks_list.unlang index 5424dc8498a..e946b5e7da0 100644 --- a/src/tests/modules/exec/backticks_list.unlang +++ b/src/tests/modules/exec/backticks_list.unlang @@ -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