diff options
-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 13270314b..6b5f97779 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -1931,8 +1931,7 @@ int main(int argc, char **argv) { | |||
1931 | } | 1931 | } |
1932 | 1932 | ||
1933 | // access call checks as real UID/GID, not as effective UID/GID | 1933 | // access call checks as real UID/GID, not as effective UID/GID |
1934 | if (access(cfg.shell, R_OK)) { | 1934 | if(cfg.chrootdir) { |
1935 | if(cfg.chrootdir) { | ||
1936 | char *shellpath; | 1935 | char *shellpath; |
1937 | if (asprintf(&shellpath, "%s%s", cfg.chrootdir, cfg.shell) == -1) | 1936 | if (asprintf(&shellpath, "%s%s", cfg.chrootdir, cfg.shell) == -1) |
1938 | errExit("asprintf"); | 1937 | errExit("asprintf"); |