mirror of
https://github.com/znc/znc.git
synced 2026-08-05 00:13:22 +02:00
Make CExecSock generate error messages if execvp() fails to find sh
I doubt this will ever happen, but let's better be sure... git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1362 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+3
-1
@@ -550,7 +550,9 @@ int CExecSock::popen2(int & iReadFD, int & iWriteFD, const CString & sCommand) {
|
||||
NULL
|
||||
};
|
||||
execvp("sh", (char * const *) pArgv);
|
||||
exit(0);
|
||||
// if execvp returns, there was an error
|
||||
perror("execvp");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
close(wpipes[0]);
|
||||
|
||||
Reference in New Issue
Block a user