diff options
author | 2016-08-14 19:46:19 +0200 | |
---|---|---|
committer | 2016-08-14 19:46:19 +0200 | |
commit | c844234739feb7aae98bd27efba8af83c729528b (patch) | |
tree | 5dfa460a71401f55990e9033d099a572f45f0dc6 /src | |
parent | Fixed #712 (diff) | |
download | firejail-c844234739feb7aae98bd27efba8af83c729528b.tar.gz firejail-c844234739feb7aae98bd27efba8af83c729528b.tar.zst firejail-c844234739feb7aae98bd27efba8af83c729528b.zip |
Small fix
Diffstat (limited to 'src')
-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"); |