diff options
author | smitsohu <smitsohu@gmail.com> | 2020-12-28 21:56:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 21:56:46 +0100 |
commit | 9ac471d9e47c901a60d1df1478ec51e1f004a814 (patch) | |
tree | 36529423bfb1c7e143f0bfc1343c9294375559c6 /src | |
parent | shell autoselection fixup (diff) | |
download | firejail-9ac471d9e47c901a60d1df1478ec51e1f004a814.tar.gz firejail-9ac471d9e47c901a60d1df1478ec51e1f004a814.tar.zst firejail-9ac471d9e47c901a60d1df1478ec51e1f004a814.zip |
cleanup
case is handled in guess_shell()
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/no_sandbox.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/firejail/no_sandbox.c b/src/firejail/no_sandbox.c index 01df77ee6..d7426f6ae 100644 --- a/src/firejail/no_sandbox.c +++ b/src/firejail/no_sandbox.c | |||
@@ -204,11 +204,12 @@ void run_no_sandbox(int argc, char **argv) { | |||
204 | break; | 204 | break; |
205 | } | 205 | } |
206 | } | 206 | } |
207 | // if shell is /usr/bin/firejail, replace it with /bin/bash | 207 | |
208 | if (strcmp(cfg.shell, PATH_FIREJAIL) == 0) { | 208 | // if shell is /usr/bin/firejail, replace it with /bin/bash |
209 | cfg.shell = "/bin/bash"; | 209 | // if (strcmp(cfg.shell, PATH_FIREJAIL) == 0) { |
210 | prog_index = 0; | 210 | // cfg.shell = "/bin/bash"; |
211 | } | 211 | // prog_index = 0; |
212 | // } | ||
212 | 213 | ||
213 | if (prog_index == 0) { | 214 | if (prog_index == 0) { |
214 | cfg.command_line = cfg.shell; | 215 | cfg.command_line = cfg.shell; |