php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #72575
Patch 72575 revision 2016-07-11 11:54 UTC by gooh@php.net

Patch 72575 for FPM related Bug #72575

Patch version 2016-07-11 11:54 UTC

Return to Bug #72575 | Download this patch
Patch Revisions:

Developer: gooh@php.net

diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c
index b497d2c..dddabb7 100644
--- a/sapi/fpm/fpm/fpm_conf.c
+++ b/sapi/fpm/fpm/fpm_conf.c
@@ -763,8 +763,8 @@ static int fpm_conf_process_all_pools() /* {{{ */
 			}
 		}
 
-		/* alert if user is not set; only if we are root and fpm is not running with --allow-to-run-as-root */
-		if (!wp->config->user && !geteuid() && !fpm_globals.run_as_root) {
+		/* alert if user is not set only if we are not root*/
+		if (!wp->config->user && !geteuid()) {
 			zlog(ZLOG_ALERT, "[pool %s] user has not been defined", wp->config->name);
 			return -1;
 		}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC