summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-03-10 18:03:38 +0100
committerGitHub <noreply@github.com>2022-03-10 18:03:38 +0100
commit6de742432786b4035842d3e3f2e4a10df68199f2 (patch)
treea39a6000664e4b988c60190cc6651a819e52cd80
parent9b750c11011761099f06ccce89a9b7001764629e (diff)
parent2649cb10598e5b3ad605950afabcd6facd4eab70 (diff)
downloadvyatta-cfg-firewall-6de742432786b4035842d3e3f2e4a10df68199f2.tar.gz
vyatta-cfg-firewall-6de742432786b4035842d3e3f2e4a10df68199f2.zip
Merge pull request #32 from zdc/T4002-equuleus1.3.2
ipset: T4002: Generate a temporary set name from UUID
-rwxr-xr-xscripts/firewall/vyatta-ipset.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/firewall/vyatta-ipset.pl b/scripts/firewall/vyatta-ipset.pl
index 0a079f3..a5375dc 100755
--- a/scripts/firewall/vyatta-ipset.pl
+++ b/scripts/firewall/vyatta-ipset.pl
@@ -288,7 +288,7 @@ sub update_set {
# added or potentially changed => iterate members
# to ensure that vyatta config and ipset stay in-sync, do the following:
# 1. copy orig set to tmp set
- my $tmpset = "$set_name-$$";
+ my $tmpset = substr `uuidgen 2>/dev/null`, 0, 31;
if (($rc = ipset_copy_set($set_name, $set_type, $tmpset))) {
# copy failed
if ($newset) {