tmpfiles: log unaccessible FUSE mount points only as debug message

This commit is contained in:
Kay Sievers
2013-10-17 03:20:46 +02:00
parent 03cc26dda4
commit ca2f4176fe
Notes: Zbigniew Jędrzejewski-Szmek 2013-10-21 17:00:10 -04:00
Backport: bugfix

View File

@@ -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;
}