This commit is contained in:
smitsohu 2020-04-20 22:13:22 +02:00
parent 824d517b2c
commit c2d9a3d452

View file

@ -32,6 +32,7 @@
#endif
static int sbox_do_exec_v(unsigned filtermask, char * const arg[]) {
// build a new, clean environment
int env_index = 0;
char *new_environment[256] = { NULL };
// preserve firejail-specific env vars
@ -40,7 +41,6 @@ static int sbox_do_exec_v(unsigned filtermask, char * const arg[]) {
if (asprintf(&new_environment[env_index++], "FIREJAIL_FILE_COPY_LIMIT=%s", cl) == -1)
errExit("asprintf");
}
clearenv();
if (arg_quiet) // --quiet is passed as an environment variable
new_environment[env_index++] = "FIREJAIL_QUIET=yes";
if (arg_debug) // --debug is passed as an environment variable