]> git.kaiwu.me - nginx.git/commit
Core: working_directory validation
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 19 Oct 2026 15:53:30 +0000 (15:53 +0000)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 21 Oct 2026 07:48:28 +0000 (11:48 +0400)
commit80f0b3b840dcf05ee35ef660bce7954d43f2eb64
tree1d0d802c4211052bc1fd7119c9094902e4d3c2dc
parent0e20f1fb0fd0cef31f196f166088f60228a86e4a
Core: working_directory validation

Previously, an invalid working_directory was only detected on worker
process startup: if chdir() failed, worker processes exited and were
not respawned, while "nginx -t" reported success.

Now the directory is checked during configuration parsing.  Note that
this doesn't cover insufficient permissions for worker processes.
src/core/nginx.c