neutrino/nhttpd: fix compiler warning in mod_yparser

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1817 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2011-11-05 11:36:01 +00:00
parent f210172647
commit 2127e63da2

View File

@@ -718,7 +718,8 @@ std::string CyParser::func_do_reload_httpd_config(CyhookHandler *, std::string)
std::string CyParser::func_change_httpd(CyhookHandler *hh, std::string para) {
if (para != "" && access(para.c_str(), 4) == 0) {
hh->status = HANDLED_ABORT;
int err = execvp(para.c_str(), NULL); // no return if successful
char * argv[2] = { (char *)para.c_str(), NULL };
int err = execvp(argv[0], argv); // no return if successful
return "ERROR [change_httpd]: execvp returns error code: " + err;
} else
return "ERROR [change_httpd]: para has not path to a file";