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