Skip to content

Commit

Permalink
deprecating --shell (3) (#5196)
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Jun 21, 2022
1 parent 9c4772f commit 7ad735d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/firejail/sandbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ void start_application(int no_sandbox, int fd, char *set_sandbox_status) {
//****************************************
// start the program without using a shell
//****************************************
else if (!arg_appimage) {
else if (!arg_appimage && !arg_doubledash) {
if (arg_debug) {
int i;
for (i = cfg.original_program_index; i < cfg.original_argc; i++) {
Expand Down Expand Up @@ -560,9 +560,9 @@ void start_application(int no_sandbox, int fd, char *set_sandbox_status) {
execvp(cfg.original_argv[cfg.original_program_index], &cfg.original_argv[cfg.original_program_index]);
}
//****************************************
// start the program using a shell (appimages)
// start the program using a shell
//****************************************
else { // appimage
else { // appimage or double-dash
char *arg[5];
int index = 0;
assert(cfg.usershell);
Expand Down
4 changes: 2 additions & 2 deletions test/filters/noroot.exp
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ spawn $env(SHELL)
send -- "firejail --debug --join=test\r"
expect {
timeout {puts "TESTING ERROR 13\n";exit}
"User namespace detected"
"Joining user namespace"
}
expect {
timeout {puts "TESTING ERROR 14\n";exit}
"Joining user namespace"
"Child process initialized"
}
sleep 1

Expand Down

0 comments on commit 7ad735d

Please sign in to comment.