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

Fixes #30690.
This commit is contained in:
r-vdp
2024-01-29 12:16:38 +00:00
committed by Luca Boccassi
parent 9561f24282
commit 25e6ce1c11
+1 -1
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))