From: Jeff Trawick Date: Tue, 6 Feb 2001 22:34:56 +0000 (+0000) Subject: get perchild just a little closer to building; maybe somebody X-Git-Tag: APACHE_2_0_2001_02_09~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0467bc811a469efa87379c1a4c809f8aff84a12;p=apache get perchild just a little closer to building; maybe somebody with a soft spot in their heart for perchild can spend the remaining ten minutes to fix it; git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87998 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/experimental/perchild/perchild.c b/server/mpm/experimental/perchild/perchild.c index 899e84429a..b2cb6d393a 100644 --- a/server/mpm/experimental/perchild/perchild.c +++ b/server/mpm/experimental/perchild/perchild.c @@ -78,6 +78,7 @@ #include "mpm_default.h" #include "mpm.h" #include "scoreboard.h" +#include "util_filter.h" #ifdef HAVE_UNISTD_H #include @@ -1710,7 +1711,8 @@ static const char *set_maintain_connection_status(cmd_parms *cmd, return NULL; } -static const char *set_coredumpdir (cmd_parms *cmd, void *dummy, const char *arg) +static const char *set_coredumpdir (cmd_parms *cmd, void *dummy, + const char *arg) { apr_finfo_t finfo; const char *fname; @@ -1720,7 +1722,7 @@ static const char *set_coredumpdir (cmd_parms *cmd, void *dummy, const char *arg } fname = ap_server_root_relative(cmd->pool, arg); - if ((apr_stat(&finfo, fname, cmd->pool) != APR_SUCCESS) + if ((apr_stat(&finfo, fname, APR_FINFO_TYPE, cmd->pool) != APR_SUCCESS) || (finfo.filetype != APR_DIR)) { return apr_pstrcat(cmd->pool, "CoreDumpDirectory ", fname, " does not exist or is not a directory", NULL); diff --git a/server/mpm/perchild/perchild.c b/server/mpm/perchild/perchild.c index 899e84429a..b2cb6d393a 100644 --- a/server/mpm/perchild/perchild.c +++ b/server/mpm/perchild/perchild.c @@ -78,6 +78,7 @@ #include "mpm_default.h" #include "mpm.h" #include "scoreboard.h" +#include "util_filter.h" #ifdef HAVE_UNISTD_H #include @@ -1710,7 +1711,8 @@ static const char *set_maintain_connection_status(cmd_parms *cmd, return NULL; } -static const char *set_coredumpdir (cmd_parms *cmd, void *dummy, const char *arg) +static const char *set_coredumpdir (cmd_parms *cmd, void *dummy, + const char *arg) { apr_finfo_t finfo; const char *fname; @@ -1720,7 +1722,7 @@ static const char *set_coredumpdir (cmd_parms *cmd, void *dummy, const char *arg } fname = ap_server_root_relative(cmd->pool, arg); - if ((apr_stat(&finfo, fname, cmd->pool) != APR_SUCCESS) + if ((apr_stat(&finfo, fname, APR_FINFO_TYPE, cmd->pool) != APR_SUCCESS) || (finfo.filetype != APR_DIR)) { return apr_pstrcat(cmd->pool, "CoreDumpDirectory ", fname, " does not exist or is not a directory", NULL);