mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-25 06:03:40 +03:00
tmpfiles: never clean up block devices
This commit is contained in:
parent
b5c6cf8734
commit
78ab08eb1a
@ -303,6 +303,10 @@ static int dir_cleanup(
|
||||
if (S_ISSOCK(s.st_mode) && unix_socket_alive(sub_path))
|
||||
continue;
|
||||
|
||||
/* Ignore device nodes */
|
||||
if (S_ISCHR(s.st_mode) || S_ISBLK(s.st_mode))
|
||||
continue;
|
||||
|
||||
age = MAX3(timespec_load(&s.st_mtim),
|
||||
timespec_load(&s.st_atim),
|
||||
timespec_load(&s.st_ctim));
|
||||
|
Loading…
x
Reference in New Issue
Block a user