Re: [PATCH] fix source code corruption in ebtables Makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Thanks for the report. The problem was actually in the naming of the nflog init function, see the update in cvs.

cheers,
Bart

Tino Keitel schreef:
Hi,

the attached patch fixes source code corruption in the static: target
of the ebtables userspace Makefile. The sed magic tries to clean up the
modified source files, but fails. It ends up with this modifications:

diff -ru ebtables-v2.0.8-2.orig/extensions/ebt_nflog.c
ebtables-v2.0.8-2/extensions/ebt_nflog.c
--- ebtables-v2.0.8-2.orig/extensions/ebt_nflog.c       2009-02-11
16:21:37.000000000 +0100
+++ ebtables-v2.0.8-2/extensions/ebt_nflog.c    2009-02-11
17:22:58.000000000 +0100
@@ -45,7 +45,7 @@
               "in-kernel queue\n");
 }
-static void nflog_init(struct ebt_entry_watcher *watcher)
+static _init(struct ebt_entry_watcher *watcher)
 {
        struct ebt_nflog_info *info = (struct ebt_nflog_info
*)watcher->data;
@@ -165,7 +165,7 @@
        .name = "nflog",
        .size = sizeof(struct ebt_nflog_info),
        .help = nflog_help,
-       .init = nflog_init,
+       .init _init,
        .parse = nflog_parse,
        .final_check = nflog_final_check,
        .print = nflog_print,

With the patch, the Makefile makes a backup of the original files and
restores it after compilation.

Signed-off-by: Tino Keitel <tino.keitel@xxxxxxxxxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux