aboutsummaryrefslogtreecommitdiff
path: root/networking/httpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/httpd.c')
-rw-r--r--networking/httpd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 33045163f..ffc58e10b 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -1667,8 +1667,7 @@ static void send_cgi_and_exit(
1667 script = last_slash; 1667 script = last_slash;
1668 if (script != url) { /* paranoia */ 1668 if (script != url) { /* paranoia */
1669 *script = '\0'; 1669 *script = '\0';
1670 if (chdir(url + 1) != 0) { 1670 if (chdir_or_warn(url + 1) != 0) {
1671 bb_perror_msg("can't change directory to '%s'", url + 1);
1672 goto error_execing_cgi; 1671 goto error_execing_cgi;
1673 } 1672 }
1674 // not needed: *script = '/'; 1673 // not needed: *script = '/';