- patch from Denis Vlasenko to add and use bb_xchdir()

This commit is contained in:
Bernhard Reutner-Fischer
2006-04-12 18:39:58 +00:00
parent 67f641e75b
commit d9cf7ac781
12 changed files with 46 additions and 62 deletions

View File

@ -2077,9 +2077,7 @@ int httpd_main(int argc, char *argv[])
#endif
#endif
if(chdir(home_httpd)) {
bb_perror_msg_and_die("can`t chdir to %s", home_httpd);
}
bb_xchdir(home_httpd);
#ifndef CONFIG_FEATURE_HTTPD_USAGE_FROM_INETD_ONLY
server = openServer();
# ifdef CONFIG_FEATURE_HTTPD_SETUID