aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2021-11-01 16:39:25 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2021-11-01 16:41:21 +0100
commit74de63bde5d166f47584ad9f623739553f170d80 (patch)
treefc36cae38b0d5033e51c4865a9e430dccdddf197 /src
parentids: add some more paths (diff)
downloadfirejail-74de63bde5d166f47584ad9f623739553f170d80.tar.gz
firejail-74de63bde5d166f47584ad9f623739553f170d80.tar.zst
firejail-74de63bde5d166f47584ad9f623739553f170d80.zip
improve detection of firejail login shell
Diffstat (limited to 'src')
-rw-r--r--src/firejail/main.c2
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