Mailing List Archive

[master] f80b1910d VJ_make_subdir needs JAIL_MASTER_FILE
commit f80b1910ddb5854e51df752718dff4e5afd84bc8
Author: Nils Goroll <nils.goroll@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);
}

_______________________________________________
varnish-commit mailing list
varnish-commit@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-commit