diff options
author | 2015-08-20 23:07:36 +0100 | |
---|---|---|
committer | 2015-08-20 23:07:36 +0100 | |
commit | 6277509c3ad62a383a09415e5b8dcaa0a450c966 (patch) | |
tree | 58ae2069e7d8a4f0fd7a44c723edeef575d52483 /src | |
parent | remove warnings form src/lib/Makefile.in (diff) | |
download | firejail-6277509c3ad62a383a09415e5b8dcaa0a450c966.tar.gz firejail-6277509c3ad62a383a09415e5b8dcaa0a450c966.tar.zst firejail-6277509c3ad62a383a09415e5b8dcaa0a450c966.zip |
Fix arguments passed to child process during execvp in --shell=none mode
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/sandbox.c b/src/firejail/sandbox.c index a97b3e77b..6135c8eac 100644 --- a/src/firejail/sandbox.c +++ b/src/firejail/sandbox.c | |||
@@ -437,7 +437,7 @@ int sandbox(void* sandbox_arg) { | |||
437 | 437 | ||
438 | if (!arg_command) | 438 | if (!arg_command) |
439 | printf("Child process initialized\n"); | 439 | printf("Child process initialized\n"); |
440 | execvp(cfg.original_argv[cfg.original_program_index], &cfg.original_argv[cfg.original_program_index + 1]); | 440 | execvp(cfg.original_argv[cfg.original_program_index], &cfg.original_argv[cfg.original_program_index]); |
441 | } | 441 | } |
442 | //**************************************** | 442 | //**************************************** |
443 | // start the program using a shell | 443 | // start the program using a shell |