Commit dd5d1895 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a ${workdir}/vmod_cache subdirectory for caching compiled

VMODs.  Otherwise jail_unix doesn't allow you to use VMODs.
parent 1041a3db
......@@ -307,6 +307,12 @@ mgt_launch_child(struct cli *cli)
child_state = CH_STARTING;
if (VJ_make_vcldir("vmod_cache")) {
VCLI_Out(cli, "Could not create vmod cache dir");
VCLI_SetResult(cli, CLIS_UNKNOWN);
return;
}
/* Open pipe for mgr->child CLI */
AZ(pipe(cp));
heritage.cli_in = cp[0];
......
......@@ -207,7 +207,7 @@ vcc_ParseImport(struct vcc *tl)
AN(vmd);
AN(vmd->file_id);
VSB_printf(ifp->ini, "\t \"%s\",\n", vmd->file_id);
VSB_printf(ifp->ini, "\t \"./_vmod_%.*s.%s\"\n",
VSB_printf(ifp->ini, "\t \"./vmod_cache/_vmod_%.*s.%s\"\n",
PF(mod), vmd->file_id);
VSB_printf(ifp->ini, "\t ))\n");
VSB_printf(ifp->ini, "\t\treturn(1);");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment