diff options
author | 2019-11-12 15:08:18 +0100 | |
---|---|---|
committer | 2019-11-12 15:08:18 +0100 | |
commit | 53e78423bca5951695d8a7ba1e456444dd576376 (patch) | |
tree | 1a4dabaf7aa66c4a26cb6cbd5e0142c88475fb59 /src | |
parent | Merge branch 'master' of https://github.com/netblue30/firejail (diff) | |
download | firejail-53e78423bca5951695d8a7ba1e456444dd576376.tar.gz firejail-53e78423bca5951695d8a7ba1e456444dd576376.tar.zst firejail-53e78423bca5951695d8a7ba1e456444dd576376.zip |
private-cache warning messages - #2968
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 | } |