]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
src: remove utf-8 character in printf lines
authorFlorian Westphal <fw@strlen.de>
Wed, 13 Mar 2024 13:17:55 +0000 (14:17 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Sep 2025 20:47:56 +0000 (22:47 +0200)
commit c92ec3b21979fe446fafa139c06ee99cb17ffd54 upstream.

replace "‘" (UTF-8, 0xe280 0x98) with "'" (ASCII 0x27).

Signed-off-by: Florian Westphal <fw@strlen.de>
src/cmd.c
src/evaluate.c

index 8c0fc37193ede4c5fd93a53b5a4cc159fbaecc98..08ebe339560012a1f0d967316c8f107ccda23409 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -29,7 +29,7 @@ static int nft_cmd_enoent_table(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!table)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean table ‘%s’ in family %s?",
+       netlink_io_error(ctx, loc, "%s; did you mean table '%s' in family %s?",
                         strerror(ENOENT), table->handle.table.name,
                         family2str(table->handle.family));
        return 1;
@@ -45,7 +45,7 @@ static int table_fuzzy_check(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (strcmp(cmd->handle.table.name, table->handle.table.name) ||
            cmd->handle.family != table->handle.family) {
                netlink_io_error(ctx, &cmd->handle.table.location,
-                                "%s; did you mean table ‘%s’ in family %s?",
+                                "%s; did you mean table '%s' in family %s?",
                                 strerror(ENOENT), table->handle.table.name,
                                 family2str(table->handle.family));
                return 1;
@@ -78,7 +78,7 @@ static int nft_cmd_enoent_chain(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!chain)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean chain ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean chain '%s' in table %s '%s'?",
                         strerror(ENOENT), chain->handle.chain.name,
                         family2str(table->handle.family),
                         table->handle.table.name);
@@ -108,7 +108,7 @@ static int nft_cmd_enoent_rule(struct netlink_ctx *ctx, const struct cmd *cmd,
                return 0;
 
        if (strcmp(cmd->handle.chain.name, chain->handle.chain.name)) {
-               netlink_io_error(ctx, loc, "%s; did you mean chain ‘%s’ in table %s ‘%s’?",
+               netlink_io_error(ctx, loc, "%s; did you mean chain '%s' in table %s '%s'?",
                                 strerror(ENOENT),
                                 chain->handle.chain.name,
                                 family2str(table->handle.family),
@@ -143,7 +143,7 @@ static int nft_cmd_enoent_set(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!set)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean %s ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean %s '%s' in table %s '%s'?",
                         strerror(ENOENT),
                         set_is_map(set->flags) ? "map" : "set",
                         set->handle.set.name,
@@ -176,7 +176,7 @@ static int nft_cmd_enoent_obj(struct netlink_ctx *ctx, const struct cmd *cmd,
        if (!obj)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean obj ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean obj '%s' in table %s '%s'?",
                         strerror(ENOENT), obj->handle.obj.name,
                         family2str(obj->handle.family),
                         table->handle.table.name);
@@ -209,7 +209,7 @@ static int nft_cmd_enoent_flowtable(struct netlink_ctx *ctx,
        if (!ft)
                return 0;
 
-       netlink_io_error(ctx, loc, "%s; did you mean flowtable ‘%s’ in table %s ‘%s’?",
+       netlink_io_error(ctx, loc, "%s; did you mean flowtable '%s' in table %s '%s'?",
                         strerror(ENOENT), ft->handle.flowtable.name,
                         family2str(ft->handle.family),
                         table->handle.table.name);
index 3023f0ed9543882a42a25992cd8db77fb83a056b..b411af3e6d8463607bf29c1a7af5ffe7ec1ad882 100644 (file)
@@ -248,7 +248,7 @@ static int table_not_found(struct eval_ctx *ctx)
                                 "%s", strerror(ENOENT));
 
        return cmd_error(ctx, &ctx->cmd->handle.table.location,
-                        "%s; did you mean table ‘%s’ in family %s?",
+                        "%s; did you mean table '%s' in family %s?",
                         strerror(ENOENT), table->handle.table.name,
                         family2str(table->handle.family));
 }
@@ -264,7 +264,7 @@ static int chain_not_found(struct eval_ctx *ctx)
                                 "%s", strerror(ENOENT));
 
        return cmd_error(ctx, &ctx->cmd->handle.chain.location,
-                        "%s; did you mean chain ‘%s’ in table %s ‘%s’?",
+                        "%s; did you mean chain '%s' in table %s '%s'?",
                         strerror(ENOENT), chain->handle.chain.name,
                         family2str(chain->handle.family),
                         table->handle.table.name);
@@ -281,7 +281,7 @@ static int set_not_found(struct eval_ctx *ctx, const struct location *loc,
                return cmd_error(ctx, loc, "%s", strerror(ENOENT));
 
        return cmd_error(ctx, loc,
-                        "%s; did you mean %s ‘%s’ in table %s ‘%s’?",
+                        "%s; did you mean %s '%s' in table %s '%s'?",
                         strerror(ENOENT),
                         set_is_map(set->flags) ? "map" : "set",
                         set->handle.set.name,
@@ -300,7 +300,7 @@ static int flowtable_not_found(struct eval_ctx *ctx, const struct location *loc,
                return cmd_error(ctx, loc, "%s", strerror(ENOENT));
 
        return cmd_error(ctx, loc,
-                       "%s; did you mean flowtable ‘%s’ in table %s ‘%s’?",
+                       "%s; did you mean flowtable '%s' in table %s '%s'?",
                        strerror(ENOENT), ft->handle.flowtable.name,
                        family2str(ft->handle.family),
                        table->handle.table.name);
@@ -5763,7 +5763,7 @@ static int obj_not_found(struct eval_ctx *ctx, const struct location *loc,
                return cmd_error(ctx, loc, "%s", strerror(ENOENT));
 
        return cmd_error(ctx, loc,
-                        "%s; did you mean obj ‘%s’ in table %s ‘%s’?",
+                        "%s; did you mean obj '%s' in table %s '%s'?",
                         strerror(ENOENT), obj->handle.obj.name,
                                 family2str(obj->handle.family),
                                 table->handle.table.name);