/* just need some arbitrary non-NULL pointer which can't also be a request_rec */
#define NESTED_INCLUDE_MAGIC (&includes_module)
+/* TODO: changing directory should be handled by CreateProcess */
+#define ap_chdir_file(x) do {} while(0)
+
/* ------------------------ Environment function -------------------------- */
/* XXX: could use ap_table_overlap here */
}
ap_destroy_sub_req(rr);
-#ifndef WIN32
ap_chdir_file(r->filename);
-#endif
return 0;
}
if (!error_fmt && ap_run_sub_req(rr)) {
error_fmt = "unable to include \"%s\" in parsed file %s";
}
-#ifndef WIN32
ap_chdir_file(r->filename);
-#endif
if (error_fmt) {
ap_log_rerror(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR,
r, error_fmt, tag_val, r->filename);
ap_rputs(error, r);
}
/* just in case some stooge changed directories */
-#ifndef WIN32
ap_chdir_file(r->filename);
-#endif
}
else if (!strcmp(tag, "cgi")) {
parse_string(r, tag_val, parsed_string, sizeof(parsed_string), 0);
"invalid CGI ref \"%s\" in %s", tag_val, file);
ap_rputs(error, r);
}
- /* grumble groan */
-#ifndef WIN32
ap_chdir_file(r->filename);
-#endif
}
else if (!strcmp(tag, "done")) {
return 0;
printing = conditional_status = 1;
if_nesting = 0;
-#ifndef WIN32
ap_chdir_file(r->filename);
-#endif
if (r->args) { /* add QUERY stuff to env cause it ain't yet */
char *arg_copy = ap_pstrdup(r->pool, r->args);