File: 0003_uif.pl-Support-VLAN-interfaces-allow-.-in-network-in.patch

package info (click to toggle)
uif 1.99.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 868 kB
  • sloc: perl: 2,548; sh: 711; makefile: 40
file content (27 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From d32bd9305be7217eadfffdb1c24c0f8dcdfa9e66 Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Sat, 14 Oct 2023 23:54:28 +0200
Subject: [PATCH] uif.pl: Support VLAN interfaces, allow '.' in network
 interface names.

Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
 uif.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uif.pl b/uif.pl
index 2cc72b2..d45c61e 100755
--- a/uif.pl
+++ b/uif.pl
@@ -530,7 +530,7 @@ sub validateData {
 		$$Interfaces{$key} = resolveHashentries($$Interfaces{$key}, $Interfaces);
 	}
 	foreach $key (keys (%$Interfaces)) {
-		if (!($$Interfaces{$key} =~ /^[a-zA-Z0-9+ ]+(:\d+)?$/)) {
+		if (!($$Interfaces{$key} =~ /^[\.a-zA-Z0-9+ ]+(:\d+)?$/)) {
 			die "invalid character in interface definition: $$Interfaces{$key}\n";
 		}
 	}
-- 
2.39.2