[master] f80b1910d VJ_make_subdir needs JAIL_MASTER_FILE

Nils Goroll nils.goroll at uplex.de
Tue Jun 2 07:07:10 UTC 2020


commit f80b1910ddb5854e51df752718dff4e5afd84bc8
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Tue Jun 2 08:34:52 2020 +0200

    VJ_make_subdir needs JAIL_MASTER_FILE

diff --git a/bin/varnishd/mgt/mgt_jail.c b/bin/varnishd/mgt/mgt_jail.c
index 615f6735d..b65005fc6 100644
--- a/bin/varnishd/mgt/mgt_jail.c
+++ b/bin/varnishd/mgt/mgt_jail.c
@@ -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);
 }
 


More information about the varnish-commit mailing list