aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorThomas Liske <thomas@fiasko-nw.net>2018-08-30 18:54:22 +0200
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2018-09-18 19:45:51 +0300
commit2efd93fa04bbcbfb4c4ff1c48f2b7d41b4be8b34 (patch)
tree9795bdaf1671eb6722502213539cd0f429de1f90 /main
parentcd3bc80aa2cdcc24b5d422e44005c1cd8114d786 (diff)
downloadaports-2efd93fa04bbcbfb4c4ff1c48f2b7d41b4be8b34.tar.bz2
aports-2efd93fa04bbcbfb4c4ff1c48f2b7d41b4be8b34.tar.xz
main/ipset: fix reloading of existing ipsets
fixes #9149
Diffstat (limited to 'main')
-rw-r--r--main/ipset/APKBUILD4
-rw-r--r--main/ipset/ipset.initd7
2 files changed, 8 insertions, 3 deletions
diff --git a/main/ipset/APKBUILD b/main/ipset/APKBUILD
index 204e77152d..0eaa7dce99 100644
--- a/main/ipset/APKBUILD
+++ b/main/ipset/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=ipset
pkgver=6.38
-pkgrel=0
+pkgrel=1
pkgdesc="Manage Linux IP sets"
url="http://ipset.netfilter.org/"
arch="all"
@@ -36,4 +36,4 @@ package() {
sha512sums="ba8c45fa6b4df1b4af848d8c0c218fb449a50c79c48b1d1550dd3a188f82d320956bc483874730f917249d8650e50c3eedff66c24a68a136246fdbf6e1127d60 ipset-6.38.tar.bz2
7bc9f2bc8d0e15722913373317422ad74fc9504ea01aacd6d512ac337cc166bbb5a0ae77e086277df6eb1e433154b37adf596680db2f43f6656a41f6876a61f0 musl-fix.patch
-d8a85dd7796fcab7d8894eb763d82af91d7abebd7f6a1f1d6d90c8297c8fda141821cf230ade2d9f554ddd0122ab10e18823722f112f0b9de6f4bd097590ca51 ipset.initd"
+c7d3344ce879ff3b21f9e30a00d49a41cbd68172aec1a933a4b501dded54e3c57615386850901da22c652a34bcbe39caac86a3a0447da24bae29b40632153239 ipset.initd"
diff --git a/main/ipset/ipset.initd b/main/ipset/ipset.initd
index 649b310ac5..83cfee920f 100644
--- a/main/ipset/ipset.initd
+++ b/main/ipset/ipset.initd
@@ -87,10 +87,15 @@ reload() {
local swap=
for name in $(set_files); do
+ if set_exists $name; then
+ swap="$swap $name"
+ fi
+ done
+
+ for name in $(set_files); do
local new=$name
if set_exists $name; then
new=_init_$name
- swap="$swap $name"
fi
echo create $new $(set_file $name | head -n 1)
done | ipset restore