diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 3a347b3d9..84bf5e8e6 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -1468,13 +1468,10 @@ int main(int argc, char **argv) { | |||
1468 | fprintf(stderr, "Error: invalid chroot directory\n"); | 1468 | fprintf(stderr, "Error: invalid chroot directory\n"); |
1469 | exit(1); | 1469 | exit(1); |
1470 | } | 1470 | } |
1471 | free(rpath); | 1471 | cfg.chrootdir = rpath; |
1472 | 1472 | ||
1473 | // check chroot directory structure | 1473 | // check chroot directory structure |
1474 | if (fs_check_chroot_dir(cfg.chrootdir)) { | 1474 | fs_check_chroot_dir(cfg.chrootdir); |
1475 | fprintf(stderr, "Error: invalid chroot\n"); | ||
1476 | exit(1); | ||
1477 | } | ||
1478 | } | 1475 | } |
1479 | else | 1476 | else |
1480 | exit_err_feature("chroot"); | 1477 | exit_err_feature("chroot"); |