Displaying 1 result from an estimated 1 matches for "cgioutput".
Did you mean:
bigoutput
2004 Aug 06
3
[PATCH] is it of any interest ?
...--- icecast-1.3.11/src/client.c Thu Aug 2 01:06:53 2001
+++ icecast-1.3.11-cgipatch/src/client.c Wed Nov 7 15:26:24 2001
@@ -206,6 +206,42 @@
return;
}
+#ifdef HAVE_UNISTD_H
+ if (ice_strncmp(req.path, "/cgi-bin/", 9) == 0) {
+ char *fname;
+ FILE *cgioutput;
+ char buffer[8192];
+ int status;
+ size_t count;
+
+ thread_rename("CGI Script Thread");
+ fname = req.path + 9;
+ if (*fname) {
+ cgioutput = popen(fname, "r");
+ if (cgioutput != NULL) {
+ while ((count = fread(buffer, 1, sizeof(buffer), cgioutput))) {
+ so...