mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
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:
@@ -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) {
|
std::string CyParser::func_change_httpd(CyhookHandler *hh, std::string para) {
|
||||||
if (para != "" && access(para.c_str(), 4) == 0) {
|
if (para != "" && access(para.c_str(), 4) == 0) {
|
||||||
hh->status = HANDLED_ABORT;
|
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;
|
return "ERROR [change_httpd]: execvp returns error code: " + err;
|
||||||
} else
|
} else
|
||||||
return "ERROR [change_httpd]: para has not path to a file";
|
return "ERROR [change_httpd]: para has not path to a file";
|
||||||
|
Reference in New Issue
Block a user