From: Lennart Poettering Date: Sat, 19 Feb 2011 13:20:16 +0000 (+0100) Subject: tmpfiles: never clean up block devices X-Git-Tag: v19~48 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78ab08eb1ae12136f66c0dcf422cd511326bb233;p=systemd tmpfiles: never clean up block devices --- diff --git a/src/tmpfiles.c b/src/tmpfiles.c index c5397ef8..917747a4 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));