1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-09 12:58:26 +03:00

Fix bug where systemd-tmpfiles gets stuck on fifos in tmp.

Fixes #30690.
This commit is contained in:
r-vdp 2024-01-29 11:21:12 +01:00 committed by Luca Boccassi
parent 9561f24282
commit 25e6ce1c11

View File

@ -822,7 +822,7 @@ static int dir_cleanup(
fd = xopenat(dirfd(d),
de->d_name,
O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NOATIME,
O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NOATIME|O_NONBLOCK,
/* xopen_flags = */ 0,
/* mode = */ 0);
if (fd < 0 && !IN_SET(fd, -ENOENT, -ELOOP))