]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Fix bug where systemd-tmpfiles gets stuck on fifos in tmp.
authorr-vdp <ramses@well-founded.dev>
Mon, 29 Jan 2024 10:21:12 +0000 (11:21 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 29 Jan 2024 12:16:38 +0000 (12:16 +0000)
Fixes #30690.

src/tmpfiles/tmpfiles.c

index 9601c538bcb6c8bfc21479f0f517606bac4b0b63..dbe9156f067909d0d6a8c91c20511b6f9929e8cb 100644 (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))