aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/no_sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/no_sandbox.c b/src/firejail/no_sandbox.c
index f7d62f90c..aae490c34 100644
--- a/src/firejail/no_sandbox.c
+++ b/src/firejail/no_sandbox.c
@@ -231,7 +231,7 @@ void run_no_sandbox(int argc, char **argv) {
231 231
232 // use $SHELL to get shell used in sandbox 232 // use $SHELL to get shell used in sandbox
233 if (!arg_shell_none && !cfg.shell) { 233 if (!arg_shell_none && !cfg.shell) {
234 char *shell = secure_getenv("SHELL"); 234 char *shell = getenv("SHELL");
235 if (access(shell, R_OK) == 0) 235 if (access(shell, R_OK) == 0)
236 cfg.shell = shell; 236 cfg.shell = shell;
237 } 237 }