Skip to content

Commit

Permalink
private-cache warning messages - #2968
Browse files Browse the repository at this point in the history
  • Loading branch information
smitsohu committed Nov 12, 2019
1 parent 91a9c52 commit 53e7842
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/firejail/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1191,15 +1191,15 @@ void fs_private_cache(void) {
// check if ~/.cache is a valid destination
struct stat s;
if (lstat(cache, &s) == -1) {
fwarning("cannot find %s, tmpfs not mounted\n", cache);
fwarning("skipping private-cache: cannot find %s\n", cache);
free(cache);
return;
}
if (!S_ISDIR(s.st_mode)) {
if (S_ISLNK(s.st_mode))
fwarning("%s is a symbolic link, tmpfs not mounted\n", cache);
fwarning("skipping private-cache: %s is a symbolic link\n", cache);
else
fwarning("%s is not a directory; cannot mount a tmpfs on top of it\n", cache);
fwarning("skipping private-cache: %s is not a directory\n", cache);
free(cache);
return;
}
Expand Down

0 comments on commit 53e7842

Please sign in to comment.