summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/firejail/fs.c2
-rwxr-xr-xtest/compile/compile.sh11
2 files changed, 8 insertions, 5 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c
index 1d2dc8e1e..ea8752624 100644
--- a/src/firejail/fs.c
+++ b/src/firejail/fs.c
@@ -86,10 +86,12 @@ void fs_build_firejail_dir(void) {
86 86
87// build /tmp/firejail/mnt directory 87// build /tmp/firejail/mnt directory
88static int tmpfs_mounted = 0; 88static int tmpfs_mounted = 0;
89#ifdef HAVE_CHROOT
89static void fs_build_remount_mnt_dir(void) { 90static void fs_build_remount_mnt_dir(void) {
90 tmpfs_mounted = 0; 91 tmpfs_mounted = 0;
91 fs_build_mnt_dir(); 92 fs_build_mnt_dir();
92} 93}
94#endif
93 95
94void fs_build_mnt_dir(void) { 96void fs_build_mnt_dir(void) {
95 struct stat s; 97 struct stat s;
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index f4440e321..43d27eac9 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -39,6 +39,7 @@ cleanup
39# enable sudo 39# enable sudo
40sudo ls -al 40sudo ls -al
41 41
42
42#***************************************************************** 43#*****************************************************************
43# TEST 1 44# TEST 1
44#***************************************************************** 45#*****************************************************************
@@ -123,8 +124,8 @@ echo "**********************************************************"
123 124
124wc -l report-test* 125wc -l report-test*
125echo 126echo
126 127echo "Legend:"
127 128echo ${arr[1]}
128 129echo ${arr[2]}
129 130echo ${arr[3]}
130exit 131echo ${arr[4]}