commit 0baf6bed2a419b617d47e27c4687fccb1e721e49 from: Omar Polo date: Sun Jan 24 09:53:54 2021 UTC pass the fd, not the path! commit - a87f6625658284c10597c2835135397ae698ad6c commit + 0baf6bed2a419b617d47e27c4687fccb1e721e49 blob - 7979949e74738e5efd4e29fa727af506240c311f blob + d7180546bf63b4ce19fb93b06145de72eab148d2 --- ex.c +++ ex.c @@ -237,7 +237,7 @@ launch_cgi(const char *spath, const char *relpath, con safe_setenv("TLS_CLIENT_HASH", chash); } - fchdir(vhost->dir); + fchdir(vhost->dirfd); execvp(ex, argv); goto childerr;