chiark / gitweb /
readahead: remove misleading error messages
[elogind.git] / src / readahead-replay.c
index e9c573a5930f0ada0e2359978fe4b0eecaa35084..9447fe0775bda3ee034ae4252b0750884c19c275 100644 (file)
@@ -62,7 +62,7 @@ static int unpack_file(FILE *pack) {
 
         if ((fd = open(fn, O_RDONLY|O_CLOEXEC|O_NOATIME|O_NOCTTY|O_NOFOLLOW)) < 0) {
 
-                if (errno != ENOENT)
+                if (errno != ENOENT && errno != EPERM && errno != EACCES)
                         log_warning("open(%s) failed: %m", fn);
 
         } else if (file_verify(fd, fn, arg_file_size_max, &st) <= 0) {