summaryrefslogtreecommitdiff
path: root/src/tmpfiles/tmpfiles.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-10-17 03:20:46 +0200
committerKay Sievers <kay@vrfy.org>2013-10-17 03:20:46 +0200
commitca2f4176fee7dd5f5664429988e7059163fddb2d (patch)
treea512ff4e66e81cd021446d7e95981b52c76beb07 /src/tmpfiles/tmpfiles.c
parent03cc26dda4cb59207fea3dd4fd1fa4608746739c (diff)
tmpfiles: log unaccessible FUSE mount points only as debug message
Diffstat (limited to 'src/tmpfiles/tmpfiles.c')
-rw-r--r--src/tmpfiles/tmpfiles.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/tmpfiles/tmpfiles.c b/src/tmpfiles/tmpfiles.c
index 3cc831a28e..e23847bbea 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;
}