]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we don't support vendor name as a flag.
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Oct 2023 00:54:13 +0000 (20:54 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Oct 2023 12:32:06 +0000 (08:32 -0400)
scripts/dict/format.pl

index 3051e2a9b5085593ddeef04d8a4c7a1438bc8335..2b2cca246d683958e322b12e679a143c89d7cb97 100755 (executable)
@@ -197,20 +197,7 @@ while (@ARGV) {
 
             my $value = $2;
             my $type = $3;
-            my $stuff = $4;
-
-            #
-            #  See if it's old format, with the vendor at the end of
-            #  the line.  If so, make it the new format.
-            #
-            if (defined $vendor && $stuff =~ /$vendor/) {
-                if ($begin_vendor == 0) {
-                    push @output, "BEGIN-VENDOR\t$vendor\n\n";
-                    $begin_vendor = 1;
-                }
-                $stuff =~ s/$vendor//;
-                $stuff =~ s/\s+$//;
-            }
+            my $refs = $4;
 
             #
             #  The numerical value doesn't start with ".".
@@ -231,7 +218,7 @@ while (@ARGV) {
 #                }
 #            }
 
-            push @output, "ATTRIBUTE\t$name$tabs$value\t$type$stuff\n";
+            push @output, "ATTRIBUTE\t$name$tabs$value\t$type$refs\n";
             next;
         }