diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-24 09:15:05 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-24 09:15:05 +0000 |
commit | 05748e49fed64039616d4bb06a7e09388b0f5467 (patch) | |
tree | 30126884a807e297001cbe965368b6a73147ee6a /ex.c | |
parent | e7a2a99b5acfd15f0a0bba63344ec028a36700b3 (diff) |
chdir to the vhost root before exec'ing the CGI script
Diffstat (limited to 'ex.c')
-rw-r--r-- | ex.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -237,6 +237,8 @@ launch_cgi(const char *spath, const char *relpath, const char *query, safe_setenv("TLS_CLIENT_HASH", chash); } + fchdir(vhost->dir); + execvp(ex, argv); goto childerr; } |