VJ_make_subdir needs JAIL_MASTER_FILE

parent c40060c3
......@@ -180,6 +180,7 @@ VJ_make_subdir(const char *dname, const char *what, struct vsb *vsb)
if (vjt->make_subdir != NULL)
return (vjt->make_subdir(dname, what, vsb));
VJ_master(JAIL_MASTER_FILE);
if (mkdir(dname, 0755) < 0 && errno != EEXIST) {
e = errno;
if (vsb != NULL) {
......@@ -193,6 +194,7 @@ VJ_make_subdir(const char *dname, const char *what, struct vsb *vsb)
}
return (1);
}
VJ_master(JAIL_MASTER_LOW);
return (0);
}
......
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