From 752b5b3d443e718688d378158dddaa01b1b557a8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 5 May 2016 23:08:42 +0900 Subject: [PATCH] nghttpx: Just call execv instead of execve --- src/shrpx_connection_handler.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/shrpx_connection_handler.cc b/src/shrpx_connection_handler.cc index a655eced..e6771bfa 100644 --- a/src/shrpx_connection_handler.cc +++ b/src/shrpx_connection_handler.cc @@ -49,8 +49,6 @@ using namespace nghttp2; -extern char **environ; - namespace shrpx { namespace { @@ -516,7 +514,7 @@ int ConnectionHandler::start_ocsp_update(const char *cert_file) { dup2(pfd[1], 1); close(pfd[0]); - rv = execve(argv[0], argv, environ); + rv = execv(argv[0], argv); if (rv == -1) { auto error = errno; LOG(ERROR) << "Could not execute ocsp query command: " << argv[0]