diff options
Diffstat (limited to 'tools/busybox-patches/networking_httpd.diff')
-rw-r--r-- | tools/busybox-patches/networking_httpd.diff | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/busybox-patches/networking_httpd.diff b/tools/busybox-patches/networking_httpd.diff new file mode 100644 index 00000000..869c65a2 --- /dev/null +++ b/tools/busybox-patches/networking_httpd.diff @@ -0,0 +1,29 @@ +Author: Lars Mueller <lm at openslx dot com> +Subject: Add missing defines to enable code for a particular +BugID: 1159 + +Index: busybox-1.3.1/networking/httpd.c +=================================================================== +--- busybox-1.3.1.orig/networking/httpd.c ++++ busybox-1.3.1/networking/httpd.c +@@ -1305,8 +1305,10 @@ static int checkPermIP(void) + + /* This could stand some work */ + for (cur = config->ip_a_d; cur; cur = cur->next) { ++#if ENABLE_FEATURE_HTTPD_CGI || DEBUG + if (DEBUG) + fprintf(stderr, "checkPermIP: '%s' ? ", config->rmt_ip_str); ++#endif + if (DEBUG) + fprintf(stderr, "'%u.%u.%u.%u/%u.%u.%u.%u'\n", + (unsigned char)(cur->ip >> 24), +@@ -1690,7 +1692,9 @@ static void handleIncoming(void) + config->ContentLength = -1; + } while (0); + ++#if ENABLE_FEATURE_HTTPD_CGI + bail_out: ++#endif + + if (DEBUG) + fprintf(stderr, "closing socket\n\n"); |