diff options
author | 2021-11-01 16:39:25 +0100 | |
---|---|---|
committer | 2021-11-01 16:41:21 +0100 | |
commit | 74de63bde5d166f47584ad9f623739553f170d80 (patch) | |
tree | fc36cae38b0d5033e51c4865a9e430dccdddf197 | |
parent | ids: add some more paths (diff) | |
download | firejail-74de63bde5d166f47584ad9f623739553f170d80.tar.gz firejail-74de63bde5d166f47584ad9f623739553f170d80.tar.zst firejail-74de63bde5d166f47584ad9f623739553f170d80.zip |
improve detection of firejail login shell
-rw-r--r-- | src/firejail/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 1ba70b0bd..e765d1d8d 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -871,7 +871,7 @@ char *guess_shell(void) { | |||
871 | if (shell) { | 871 | if (shell) { |
872 | invalid_filename(shell, 0); // no globbing | 872 | invalid_filename(shell, 0); // no globbing |
873 | if (access(shell, X_OK) == 0 && !is_dir(shell) && strstr(shell, "..") == NULL && | 873 | if (access(shell, X_OK) == 0 && !is_dir(shell) && strstr(shell, "..") == NULL && |
874 | strcmp(shell, PATH_FIREJAIL) != 0) | 874 | strcmp(gnu_basename(shell), "firejail") != 0) |
875 | goto found; | 875 | goto found; |
876 | } | 876 | } |
877 | 877 | ||