X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftmpfiles.c;h=917747a4a48548237549ac743c710e0a11172ac7;hb=4dba533a137486719fb385c45fc2ff75593fdf53;hp=c5397ef846ca2cdcabbc945ee7efd0c2f37910e9;hpb=4ff21d85822b521ed6741ef88cb4aaa384539dec;p=elogind.git diff --git a/src/tmpfiles.c b/src/tmpfiles.c index c5397ef84..917747a4a 100644 --- a/src/tmpfiles.c +++ b/src/tmpfiles.c @@ -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));