From 36578c7b43c5872277ba880b28a8a8a237ab7841 Mon Sep 17 00:00:00 2001 From: Tiago Natel de Moura Date: Wed, 4 Mar 2020 13:42:08 +0000 Subject: PHP: fixed log format in alert. Found by Coverity: CID 354832 and CID 354833. --- src/nxt_php_sapi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nxt_php_sapi.c') diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c index 3702c371..f5053652 100644 --- a/src/nxt_php_sapi.c +++ b/src/nxt_php_sapi.c @@ -892,7 +892,8 @@ nxt_inline void nxt_php_vcwd_chdir(nxt_unit_request_info_t *req, const nxt_str_t *dir) { if (nxt_slow_path(VCWD_CHDIR((char *) dir->start) != 0)) { - nxt_unit_req_alert(req, "failed to VCWD_CHDIR(%V) %E", dir, nxt_errno); + nxt_unit_req_alert(req, "VCWD_CHDIR(%s) failed (%d: %s)", + dir->start, errno, strerror(errno)); } } -- cgit