diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/fs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/firejail/fs.c b/src/firejail/fs.c index 3df551d4c..3e802efb5 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c | |||
@@ -1191,15 +1191,15 @@ void fs_private_cache(void) { | |||
1191 | // check if ~/.cache is a valid destination | 1191 | // check if ~/.cache is a valid destination |
1192 | struct stat s; | 1192 | struct stat s; |
1193 | if (lstat(cache, &s) == -1) { | 1193 | if (lstat(cache, &s) == -1) { |
1194 | fwarning("cannot find %s, tmpfs not mounted\n", cache); | 1194 | fwarning("skipping private-cache: cannot find %s\n", cache); |
1195 | free(cache); | 1195 | free(cache); |
1196 | return; | 1196 | return; |
1197 | } | 1197 | } |
1198 | if (!S_ISDIR(s.st_mode)) { | 1198 | if (!S_ISDIR(s.st_mode)) { |
1199 | if (S_ISLNK(s.st_mode)) | 1199 | if (S_ISLNK(s.st_mode)) |
1200 | fwarning("%s is a symbolic link, tmpfs not mounted\n", cache); | 1200 | fwarning("skipping private-cache: %s is a symbolic link\n", cache); |
1201 | else | 1201 | else |
1202 | fwarning("%s is not a directory; cannot mount a tmpfs on top of it\n", cache); | 1202 | fwarning("skipping private-cache: %s is not a directory\n", cache); |
1203 | free(cache); | 1203 | free(cache); |
1204 | return; | 1204 | return; |
1205 | } | 1205 | } |