aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2022-06-19 17:42:15 -0400
committerLibravatar netblue30 <netblue30@protonmail.com>2022-06-19 17:42:15 -0400
commit4caf05b08d4eeecd621dcb182682be79ccd38f03 (patch)
tree6253d79eef1ff6c706c24f592c0cab14d73a48f1 /src
parentshell none set as default (3) (diff)
downloadfirejail-4caf05b08d4eeecd621dcb182682be79ccd38f03.tar.gz
firejail-4caf05b08d4eeecd621dcb182682be79ccd38f03.tar.zst
firejail-4caf05b08d4eeecd621dcb182682be79ccd38f03.zip
shell none set as default (4)
Diffstat (limited to 'src')
-rw-r--r--src/firejail/main.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 695f018a5..1554209b9 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -2816,11 +2816,9 @@ int main(int argc, char **argv, char **envp) {
2816 2816
2817 // prog_index could still be -1 if no program was specified 2817 // prog_index could still be -1 if no program was specified
2818 if (prog_index == -1 && arg_shell_none) { 2818 if (prog_index == -1 && arg_shell_none) {
2819just_run_the_shell = 1; 2819 just_run_the_shell = 1;
2820if (!cfg.shell) 2820 if (!cfg.shell)
2821 cfg.shell = cfg.usershell; 2821 cfg.shell = cfg.usershell;
2822// fprintf(stderr, "Error: shell=none configured, but no program specified\n");
2823// exit(1);
2824 } 2822 }
2825 2823
2826 // check trace configuration 2824 // check trace configuration