diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-04 10:33:05 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2022-11-04 10:33:05 +0000 |
| commit | ce8c20c1edea8bda88d12dcfafafe253832d361f (patch) | |
| tree | ebf2d8ca888fb7f467e13efc9bf7f98bca0cf754 /src/config/ConfigManager.cpp | |
| parent | 349afa0e7a5a8f60404772ae76ab0dc6fe4117ff (diff) | |
fix raw exec in configmanager
Diffstat (limited to 'src/config/ConfigManager.cpp')
| -rw-r--r-- | src/config/ConfigManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index 9621b00c..1f263288 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -420,7 +420,7 @@ void CConfigManager::handleRawExec(const std::string& command, const std::string // run in grandchild close(socket[0]); close(socket[1]); - execl("/bin/sh", "/bin/sh", "-c", args.c_str(), nullptr); + execl("/bin/sh", "/bin/sh", "-c", toExec.c_str(), nullptr); // exit grandchild _exit(0); } |
