]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow "parent = ..." in extended attribute vendor format
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Oct 2023 00:48:30 +0000 (20:48 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Oct 2023 12:32:06 +0000 (08:32 -0400)
scripts/dict/format.pl

index 2cc3ac92fc4902623faeed30e35c78faad3f2459..3051e2a9b5085593ddeef04d8a4c7a1438bc8335 100755 (executable)
@@ -156,15 +156,20 @@ while (@ARGV) {
         #
         #  Remember if we did BEGIN-VENDOR format=
         #
-        if (/^BEGIN-VENDOR\s+([-\w]+)\s+(format=[-\w]+)/) {
+        if (/^BEGIN-VENDOR\s+([-\w]+)\s+(.+)/) {
+           my $tabs;
+
             $begin_vendor = 1;
             if (!defined $vendor) {
                 $vendor = $1;
             } elsif ($vendor ne $1) {
                 # do something smart
             }
+           if ($2) {
+               $tabs = tabs(32,$vendor);
+           }
 
-            push @output, "BEGIN-VENDOR\t$vendor $2\n";
+            push @output, "BEGIN-VENDOR\t$vendor$tabs$2\n";
             next;
         }