mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
parent
e98a7a9140
commit
0fd474ee8d
@ -105,6 +105,7 @@ static Value ProcessSpawnImpl(struct msghdr *msgh, const Dictionary::Ptr& reques
|
|||||||
|
|
||||||
auto **envp = new char *[envc + (extraEnvironment ? extraEnvironment->GetLength() : 0) + 2];
|
auto **envp = new char *[envc + (extraEnvironment ? extraEnvironment->GetLength() : 0) + 2];
|
||||||
const char* lcnumeric = "LC_NUMERIC=";
|
const char* lcnumeric = "LC_NUMERIC=";
|
||||||
|
const char* notifySocket = "NOTIFY_SOCKET=";
|
||||||
int j = 0;
|
int j = 0;
|
||||||
|
|
||||||
for (int i = 0; i < envc; i++) {
|
for (int i = 0; i < envc; i++) {
|
||||||
@ -112,6 +113,10 @@ static Value ProcessSpawnImpl(struct msghdr *msgh, const Dictionary::Ptr& reques
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (strncmp(environ[i], notifySocket, strlen(notifySocket)) == 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
envp[j] = strdup(environ[i]);
|
envp[j] = strdup(environ[i]);
|
||||||
++j;
|
++j;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user