From: florian Date: Mon, 29 Sep 2008 18:56:21 +0000 (+0000) Subject: Add patch from #3950 to make wifidog work with newer kernels X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=cb318210dbfaa15f12f46ec76530e7fd7b7f2453;p=packages.git Add patch from #3950 to make wifidog work with newer kernels git-svn-id: svn://svn.openwrt.org/openwrt/packages@12807 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 000000000..fb5073680 --- /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;