aboutsummaryrefslogtreecommitdiffstats
path: root/www/mod_jail
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-30 06:29:45 +0800
committeradamw <adamw@FreeBSD.org>2014-07-30 06:29:45 +0800
commit11c8acf99e35f134378b5fc15f7b4e5c9ce84cec (patch)
tree3be5c1daf112bd1fbffb95296f1efce88bc743e5 /www/mod_jail
parent85e12b93fc181753b35175a0e99735d9f37499d8 (diff)
downloadfreebsd-ports-gnome-11c8acf99e35f134378b5fc15f7b4e5c9ce84cec.tar.gz
freebsd-ports-gnome-11c8acf99e35f134378b5fc15f7b4e5c9ce84cec.tar.zst
freebsd-ports-gnome-11c8acf99e35f134378b5fc15f7b4e5c9ce84cec.zip
Unbreak.
Diffstat (limited to 'www/mod_jail')
-rw-r--r--www/mod_jail/files/patch-mod_jail.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/www/mod_jail/files/patch-mod_jail.c b/www/mod_jail/files/patch-mod_jail.c
new file mode 100644
index 000000000000..5fccd8ad2756
--- /dev/null
+++ b/www/mod_jail/files/patch-mod_jail.c
@@ -0,0 +1,17 @@
+--- ./mod_jail.c.orig 2014-07-29 18:28:40.000000000 -0400
++++ ./mod_jail.c 2014-07-29 18:28:56.000000000 -0400
+@@ -336,12 +336,12 @@
+ if (geteuid()) {
+ ap_log_error(APLOG_MARK, APLOG_ALERT, 0, s,
+ "mod_jail can't jail when not started as root.");
+- return;
++ return !OK;
+ }
+ if (chdir(cfg->jail.path) == -1) {
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,
+ "mod_jail unable to chdir to %s.", cfg->jail.path);
+- return;
++ return !OK;
+ }
+ if (jail(&cfg->jail) == -1) {
+ ap_log_error(APLOG_MARK, APLOG_ERR, 0, s,