From 8c828b0a570d0144b41e6f2c2a0130e68533c04e Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 29 Sep 2008 18:56:21 +0000 Subject: [PATCH] Add patch from #3950 to make wifidog work with newer kernels SVN-Revision: 12807 --- net/wifidog/patches/001-proc_net_syntax.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/wifidog/patches/001-proc_net_syntax.patch diff --git a/net/wifidog/patches/001-proc_net_syntax.patch b/net/wifidog/patches/001-proc_net_syntax.patch new file mode 100644 index 0000000000..fb5073680f --- /dev/null +++ b/net/wifidog/patches/001-proc_net_syntax.patch @@ -0,0 +1,11 @@ +--- wifidog-1.1.5/src/firewall.c 2008-08-29 22:44:57.000000000 +0200 ++++ wifidog-1.1.5-fixed/src/firewall.c 2008-08-29 22:45:46.000000000 +0200 +@@ -135,7 +135,7 @@ + + /* Find ip, copy mac in reply */ + reply = NULL; +- while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-F0-9:] %*s %*s", ip, mac) == 2)) { ++ while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-Fa-f0-9:] %*s %*s", ip, mac) == 2)) { + if (strcmp(ip, req_ip) == 0) { + reply = safe_strdup(mac); + break; -- 2.30.2