chiark / gitweb /
readahead: don't complain that we cannot precache symlinks
authorLennart Poettering <lennart@poettering.net>
Thu, 3 Jan 2013 21:37:38 +0000 (22:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 Jan 2013 21:37:38 +0000 (22:37 +0100)
http://lists.freedesktop.org/archives/systemd-devel/2012-December/007847.html

src/readahead/readahead-replay.c

index a1ac6b0c918d804bf1eaa3f797f70c97cf99c42f..cb04e5f9cde051fb2a1965be2fb9450ee39d0b90 100644 (file)
@@ -64,7 +64,7 @@ static int unpack_file(FILE *pack) {
         fd = open(fn, O_RDONLY|O_CLOEXEC|O_NOATIME|O_NOCTTY|O_NOFOLLOW);
         if (fd < 0) {
 
         fd = open(fn, O_RDONLY|O_CLOEXEC|O_NOATIME|O_NOCTTY|O_NOFOLLOW);
         if (fd < 0) {
 
-                if (errno != ENOENT && errno != EPERM && errno != EACCES)
+                if (errno != ENOENT && errno != EPERM && errno != EACCES && errno != ELOOP)
                         log_warning("open(%s) failed: %m", fn);
 
         } else if (file_verify(fd, fn, arg_file_size_max, &st) <= 0) {
                         log_warning("open(%s) failed: %m", fn);
 
         } else if (file_verify(fd, fn, arg_file_size_max, &st) <= 0) {