Skip to contentSkip to conversation

extensions: libxt_devgroup: Fix the path of the mappings file

PATCH Applied Ana Rey 2 participants 2 messages Sep 18, 2014 – Sep 19, 2014 netfilter

lore
Share & tools
lore

Ana Rey

author
#0 lore raw

PATCH 1/1 extensions: libxt_devgroup: Fix the path of the mappings file

Use "/etc/iproute2/group" like the path of the mapping file instead of "/etc/iproute2/group_map"

---
 extensions/libxt_devgroup.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
extensions/libxt_devgroup.c +2 -2
index 4a69c82..fb1fcb5 100644
@@ -31,12 +31,12 @@ static const struct xt_option_entry devgroup_opts[] = {
 	XTOPT_TABLEEND,
 };
 
-/* array of devgroups from /etc/iproute2/group_map */
+/* array of devgroups from /etc/iproute2/group */
 static struct xtables_lmap *devgroups;
 
 static void devgroup_init(struct xt_entry_match *match)
 {
-	const char file[] = "/etc/iproute2/group_map";
+	const char file[] = "/etc/iproute2/group";
 	devgroups = xtables_lmap_init(file);
 	if (devgroups == NULL && errno != ENOENT)
 		fprintf(stderr, "Warning: %s: %s\n", file, strerror(errno));
Signature · 1 line
1.7.10.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Ana Rey

Use "/etc/iproute2/group" like the path of the mapping file instead of "/etc/iproute2/group_map"

Applied, thanks Ana.