summaryrefslogtreecommitdiffstats
path: root/src/firejail/fs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/fs.c')
-rw-r--r--src/firejail/fs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index 4556f0a82..65b0773ca 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -919,6 +919,9 @@ void fs_overlayfs(void) {
919 } 919 }
920 920
921 // chroot in the new filesystem 921 // chroot in the new filesystem
922#ifdef HAVE_GCOV
923 __gcov_flush();
924#endif
922 if (chroot(oroot) == -1) 925 if (chroot(oroot) == -1)
923 errExit("chroot"); 926 errExit("chroot");
924 927
@@ -1102,6 +1105,9 @@ void fs_chroot(const char *rootdir) {
1102 } 1105 }
1103 1106
1104 // chroot into the new directory 1107 // chroot into the new directory
1108#ifdef HAVE_GCOV
1109 __gcov_flush();
1110#endif
1105 if (arg_debug) 1111 if (arg_debug)
1106 printf("Chrooting into %s\n", rootdir); 1112 printf("Chrooting into %s\n", rootdir);
1107 if (chroot(rootdir) < 0) 1113 if (chroot(rootdir) < 0)