diff options
-rw-r--r-- | src/firejail/join.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/firejail/join.c b/src/firejail/join.c index b62a1ca9d..5d73f71be 100644 --- a/src/firejail/join.c +++ b/src/firejail/join.c | |||
@@ -315,6 +315,11 @@ static int open_shell(void) { | |||
315 | fprintf(stderr, "Error: cannot open shell %s\n", cfg.shell); | 315 | fprintf(stderr, "Error: cannot open shell %s\n", cfg.shell); |
316 | exit(1); | 316 | exit(1); |
317 | } | 317 | } |
318 | |||
319 | // pass file descriptor through to the final fexecve | ||
320 | if (asprintf(&cfg.keep_fd, "%s,%d", cfg.keep_fd ? cfg.keep_fd : "", fd) == -1) | ||
321 | errExit("asprintf"); | ||
322 | |||
318 | return fd; | 323 | return fd; |
319 | } | 324 | } |
320 | 325 | ||