mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
cleanup
This commit is contained in:
parent
824d517b2c
commit
c2d9a3d452
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue