mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-06-16 02:35:58 +00:00
tmpfiles: log unaccessible FUSE mount points only as debug message
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
e44f228b78
commit
646ed3b5d1
@@ -276,12 +276,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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user