mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Unbreak.
This commit is contained in:
parent
9f89f8ea7e
commit
d13c0532de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363402
17
www/mod_jail/files/patch-mod_jail.c
Normal file
17
www/mod_jail/files/patch-mod_jail.c
Normal file
@ -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,
|
Loading…
Reference in New Issue
Block a user