diff options
author | Aleksey Manevich <manevich.aleksey@gmail.com> | 2016-08-13 22:54:29 +0300 |
---|---|---|
committer | Aleksey Manevich <manevich.aleksey@gmail.com> | 2016-08-13 22:54:29 +0300 |
commit | ba27a763ad86978857a8c50bdd83a9bf894e74d7 (patch) | |
tree | 55d9804f2e6c49691c226a2f77cdace6b46b900e | |
parent | shell selection (diff) | |
download | firejail-ba27a763ad86978857a8c50bdd83a9bf894e74d7.tar.gz firejail-ba27a763ad86978857a8c50bdd83a9bf894e74d7.tar.zst firejail-ba27a763ad86978857a8c50bdd83a9bf894e74d7.zip |
small fix
-rw-r--r-- | src/firejail/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 8a4d627f3..87c8389ad 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -1999,8 +1999,7 @@ int main(int argc, char **argv) { | |||
1999 | } | 1999 | } |
2000 | 2000 | ||
2001 | // guess shell if unspecified | 2001 | // guess shell if unspecified |
2002 | // if (!arg_shell_none && !cfg.shell) { | 2002 | if (!arg_shell_none && !cfg.shell) { |
2003 | if (prog_index == -1 && !cfg.shell) { | ||
2004 | cfg.shell = guess_shell(); | 2003 | cfg.shell = guess_shell(); |
2005 | if (!cfg.shell) { | 2004 | if (!cfg.shell) { |
2006 | fprintf(stderr, "Error: unable to guess your shell, please set explicitly by using --shell option.\n"); | 2005 | fprintf(stderr, "Error: unable to guess your shell, please set explicitly by using --shell option.\n"); |