diff options
author | 2020-04-20 22:13:22 +0200 | |
---|---|---|
committer | 2020-04-20 22:13:22 +0200 | |
commit | c2d9a3d452f94b53e57e06d44714dd4e8d19033c (patch) | |
tree | cd64cd881e514fb22fd8f429f17aa05b75cbc63c | |
parent | Profile for jitsi-meet-desktop (#3362) (diff) | |
download | firejail-c2d9a3d452f94b53e57e06d44714dd4e8d19033c.tar.gz firejail-c2d9a3d452f94b53e57e06d44714dd4e8d19033c.tar.zst firejail-c2d9a3d452f94b53e57e06d44714dd4e8d19033c.zip |
cleanup
-rw-r--r-- | src/firejail/sbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/sbox.c b/src/firejail/sbox.c index e7fa267d8..97ba3b07e 100644 --- a/src/firejail/sbox.c +++ b/src/firejail/sbox.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | static int sbox_do_exec_v(unsigned filtermask, char * const arg[]) { | 34 | static int sbox_do_exec_v(unsigned filtermask, char * const arg[]) { |
35 | // build a new, clean environment | ||
35 | int env_index = 0; | 36 | int env_index = 0; |
36 | char *new_environment[256] = { NULL }; | 37 | char *new_environment[256] = { NULL }; |
37 | // preserve firejail-specific env vars | 38 | // preserve firejail-specific env vars |
@@ -40,7 +41,6 @@ static int sbox_do_exec_v(unsigned filtermask, char * const arg[]) { | |||
40 | if (asprintf(&new_environment[env_index++], "FIREJAIL_FILE_COPY_LIMIT=%s", cl) == -1) | 41 | if (asprintf(&new_environment[env_index++], "FIREJAIL_FILE_COPY_LIMIT=%s", cl) == -1) |
41 | errExit("asprintf"); | 42 | errExit("asprintf"); |
42 | } | 43 | } |
43 | clearenv(); | ||
44 | if (arg_quiet) // --quiet is passed as an environment variable | 44 | if (arg_quiet) // --quiet is passed as an environment variable |
45 | new_environment[env_index++] = "FIREJAIL_QUIET=yes"; | 45 | new_environment[env_index++] = "FIREJAIL_QUIET=yes"; |
46 | if (arg_debug) // --debug is passed as an environment variable | 46 | if (arg_debug) // --debug is passed as an environment variable |