geoip: build tool should not rely on directory name

Fix this:

	GeoLite2-Country-CSV_20180905$ /usr/lib/xtables-addons/xt_geoip_build

	Use of uninitialized value $dir in concatenation (.) or string at
	/usr/lib/xtables-addons/xt_geoip_build line 59.
	Couldn't open list country names

Do not rely on any directory names (they change). Use the current
directory as the default source directory, similar to the older
xt_geoip_build (well, *.csv was passed as arguments).
This commit is contained in:
Jan Engelhardt
2018-09-07 14:59:01 +02:00
parent 30fb410003
commit 5e19871613
3 changed files with 22 additions and 39 deletions

View File

@@ -1,6 +1,9 @@
HEAD
====
Changes:
- rework xt_geoip_build to scan the immediate directory for .csv,
not to scan for GeoLite2-Country-CSV_\d+.
v3.1 (2018-08-14)