]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: libxt_devgroup: Fix the path of the group mappings file
authorAna Rey <anarey@gmail.com>
Thu, 18 Sep 2014 11:06:42 +0000 (13:06 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 19 Sep 2014 13:17:37 +0000 (15:17 +0200)
Use "/etc/iproute2/group" as the default path to the mapping file
instead of "/etc/iproute2/group_map".

Signed-off-by: Ana Rey <anarey@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_devgroup.c

index 4a69c8229ce4ad019837acd124296e9685741941..fb1fcb51c1bb2ff109da509ba90ec561fda4b41c 100644 (file)
@@ -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));