httpd: move data off bss.
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 9 Jun 2007 23:49:05 +0000 (23:49 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 9 Jun 2007 23:49:05 +0000 (23:49 -0000)
commit77e44d60e698c2164f610072e9f7e2bacefdd589
treeaead8cb0cf31e55735bd7681544f0c61290cbbae
parent66db264a5fd67ce4573c905c897a1e80ff26a461
httpd: move data off bss.
httpd: do not realpath() for SCRIPT_FILENAME - it resolves symlinks
but it should not:

-                /* SCRIPT_FILENAME required by PHP in CGI mode */
-               if (!realpath(purl + 1, realpath_buff))
-                       goto error_execing_cgi;
-               setenv1("SCRIPT_FILENAME", realpath_buff);
+
+               /* SCRIPT_FILENAME required by PHP in CGI mode */
+               fullpath = concat_path_file(home_httpd, purl);
+               setenv1("SCRIPT_FILENAME", fullpath);
networking/httpd.c