[systemd-commits] src/tmpfiles

Kay Sievers kay at kemper.freedesktop.org
Wed Oct 16 18:24:02 PDT 2013


 src/tmpfiles/tmpfiles.c |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

New commits:
commit ca2f4176fee7dd5f5664429988e7059163fddb2d
Author: Kay Sievers <kay at vrfy.org>
Date:   Thu Oct 17 03:20:46 2013 +0200

    tmpfiles: log unaccessible FUSE mount points only as debug message

diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 3cc831a..e23847b 100644
--- a/src/tmpfiles/tmpfiles.c
+++ b/src/tmpfiles/tmpfiles.c
@@ -275,12 +275,15 @@ static int dir_cleanup(
                         continue;
 
                 if (fstatat(dirfd(d), dent->d_name, &s, AT_SYMLINK_NOFOLLOW) < 0) {
+                        if (errno == ENOENT)
+                                continue;
 
-                        if (errno != ENOENT) {
+                        /* FUSE, NFS mounts, SELinux might return EACCES */
+                        if (errno == EACCES)
+                                log_debug("stat(%s/%s) failed: %m", p, dent->d_name);
+                        else
                                 log_error("stat(%s/%s) failed: %m", p, dent->d_name);
-                                r = -errno;
-                        }
-
+                        r = -errno;
                         continue;
                 }
 



More information about the systemd-commits mailing list