php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch fpm-syslog-bug.patch for FPM related Bug #66239Patch version 2013-12-06 11:56 UTC Return to Bug #66239 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions:Developer: krakjoe@php.netdiff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c index cd5fc34..9f69765 100644 --- a/sapi/fpm/fpm/fpm_conf.c +++ b/sapi/fpm/fpm/fpm_conf.c @@ -673,7 +673,8 @@ static int fpm_evaluate_full_path(char **path, struct fpm_worker_pool_s *wp, cha char *prefix = NULL; char *full_path; - if (!path || !*path || **path == '/') { + if (!path || !*path || **path == '/' || + (strncasecmp(*path, "syslog", sizeof("syslog")) == SUCCESS)) { return 0; } @@ -711,7 +712,7 @@ static int fpm_evaluate_full_path(char **path, struct fpm_worker_pool_s *wp, cha } } } - + if (*path) { spprintf(&full_path, 0, "%s/%s", prefix, *path); free(*path); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Sat Dec 21 16:01:28 2024 UTC |