pass the fd, not the path!

This commit is contained in:
Omar Polo 2021-01-24 09:53:54 +00:00
parent a87f662565
commit 0baf6bed2a
1 changed files with 1 additions and 1 deletions

2
ex.c
View File

@ -237,7 +237,7 @@ launch_cgi(const char *spath, const char *relpath, const char *query,
safe_setenv("TLS_CLIENT_HASH", chash);
}
fchdir(vhost->dir);
fchdir(vhost->dirfd);
execvp(ex, argv);
goto childerr;