diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 65569ae5f..ec0c31285 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -1583,6 +1583,12 @@ int main(int argc, char **argv) { | |||
1583 | exit(1); | 1583 | exit(1); |
1584 | } | 1584 | } |
1585 | fs_check_private_dir(); | 1585 | fs_check_private_dir(); |
1586 | |||
1587 | // downgrade to --private if the directory is the user home directory | ||
1588 | if (strcmp(cfg.home_private, cfg.homedir) == 0) { | ||
1589 | free(cfg.home_private); | ||
1590 | cfg.home_private = NULL; | ||
1591 | } | ||
1586 | arg_private = 1; | 1592 | arg_private = 1; |
1587 | } | 1593 | } |
1588 | #ifdef HAVE_PRIVATE_HOME | 1594 | #ifdef HAVE_PRIVATE_HOME |