chiark / gitweb /
readahead-collect: ignore EACCES for fanotify
[elogind.git] / src / readahead-collect.c
index 3c48a02fc9e49dc9a92c3e43d4715a0dbcbfbbe9..913a34005e3c69f8a8c31dfa5510997e68bb9a17 100644 (file)
@@ -380,7 +380,7 @@ static int collect(const char *root) {
 
                 if ((n = read(fanotify_fd, &data, sizeof(data))) < 0) {
 
-                        if (errno == EINTR || errno == EAGAIN)
+                        if (errno == EINTR || errno == EAGAIN || errno == EACCES)
                                 continue;
 
                         log_error("Failed to read event: %m");