summaryrefslogtreecommitdiff
path: root/src/readahead-collect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-18 02:26:01 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-18 02:26:03 +0100
commita76fad090a6a1388fbaa609e8ca37e82223d2bd7 (patch)
treeca883d9024fc2937510b4f95e6522498ed455b33 /src/readahead-collect.c
parentd12d0e647a0bf83581e2dba4281a5b93b5428886 (diff)
readahead: remove misleading error messages
https://bugzilla.redhat.com/show_bug.cgi?id=678255
Diffstat (limited to 'src/readahead-collect.c')
-rw-r--r--src/readahead-collect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/readahead-collect.c b/src/readahead-collect.c
index 4ca6d74726..ea07b3ff49 100644
--- a/src/readahead-collect.c
+++ b/src/readahead-collect.c
@@ -96,6 +96,9 @@ static int pack_file(FILE *pack, const char *fn, bool on_btrfs) {
if (errno == ENOENT)
return 0;
+ if (errno == EPERM || errno == EACCES)
+ return 0;
+
log_warning("open(%s) failed: %m", fn);
r = -errno;
goto finish;